mirror of
https://github.com/libp2p/go-libp2p.git
synced 2025-10-06 08:37:29 +08:00
test: fix flaky example test
If we run the listener async, we might get expected events out of order.
This commit is contained in:
@@ -43,7 +43,7 @@ func TestMain(t *testing.T) {
|
||||
return
|
||||
}
|
||||
|
||||
go runListener(ctx, lh, lport, true)
|
||||
startListener(ctx, lh, lport, true)
|
||||
|
||||
// Make sender
|
||||
listenAddr := getHostAddress(lh)
|
||||
|
Reference in New Issue
Block a user