Skip to content

Commit

Permalink
nit
Browse files Browse the repository at this point in the history
Signed-off-by: Joshua Kim <[email protected]>
  • Loading branch information
joshua-kim committed Dec 12, 2023
1 parent 23f90d4 commit e314988
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions network/p2p/network_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,10 @@ func TestMessageRouting(t *testing.T) {
SentAppRequest: make(chan []byte, 1),
SentCrossChainAppRequest: make(chan []byte, 1),
}
network := NewNetwork(logging.NoLog{}, sender, prometheus.NewRegistry(), "")
client, err := network.NewAppProtocol(1, testHandler)
network, err := NewNetwork(logging.NoLog{}, sender, prometheus.NewRegistry(), "")
require.NoError(err)
require.NoError(network.AddHandler(1, testHandler))
client, err := network.NewClient(1)
require.NoError(err)

require.NoError(client.AppGossip(ctx, wantMsg))
Expand Down

0 comments on commit e314988

Please sign in to comment.