Wait a couple seconds for ID event (#1568)
This commit is contained in:
parent
0fcc5d26ef
commit
c7928312d6
|
@ -395,7 +395,7 @@ func TestIdentifyDeltaOnProtocolChange(t *testing.T) {
|
||||||
case <-idComplete.Out():
|
case <-idComplete.Out():
|
||||||
case evt := <-idFailed.Out():
|
case evt := <-idFailed.Out():
|
||||||
t.Fatalf("Failed to identify: %v", evt.(event.EvtPeerIdentificationFailed).Reason)
|
t.Fatalf("Failed to identify: %v", evt.(event.EvtPeerIdentificationFailed).Reason)
|
||||||
default:
|
case <-time.After(5 * time.Second):
|
||||||
t.Fatal("Missing id event")
|
t.Fatal("Missing id event")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue