diff --git a/p2p/protocol/identify/id_test.go b/p2p/protocol/identify/id_test.go index 736fcc7f50..a82497c3d3 100644 --- a/p2p/protocol/identify/id_test.go +++ b/p2p/protocol/identify/id_test.go @@ -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") }