Skip to content

Commit

Permalink
Wait a couple seconds for ID event (#1568)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoPolo committed Jun 24, 2022
1 parent 837c5fc commit b9b1bc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion p2p/protocol/identify/id_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ func TestIdentifyDeltaOnProtocolChange(t *testing.T) {
case <-idComplete.Out():
case evt := <-idFailed.Out():
t.Fatalf("Failed to identify: %v", evt.(event.EvtPeerIdentificationFailed).Reason)
default:
case <-time.After(5 * time.Second):
t.Fatal("Missing id event")
}

Expand Down

0 comments on commit b9b1bc6

Please sign in to comment.