Wait a couple seconds for ID event (#1568)

This commit is contained in:
Marco Munizaga 2022-05-27 12:20:53 -07:00 committed by GitHub
parent 0fcc5d26ef
commit c7928312d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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")
} }