Skip to content

Commit

Permalink
Improve error message on failure.
Browse files Browse the repository at this point in the history
  • Loading branch information
ajsutton committed Jun 5, 2023
1 parent 9370213 commit 0341f79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion p2p/net/mock/mock_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -642,7 +642,7 @@ func TestEventBus(t *testing.T) {
t.Fatal("wrong remote peer")
}
if evnt.Connectedness != network.Connected {
t.Fatal("wrong connectedness type")
t.Fatalf("wrong connectedness type. Got: %v, expected: %v", evnt.Connectedness, network.Connected)
}
case evt := <-sub1.Out():
evnt := evt.(event.EvtPeerConnectednessChanged)
Expand Down

0 comments on commit 0341f79

Please sign in to comment.