Skip to content

Commit 943b2e8

Browse files
committed
remove race condition on direct peering test
1 parent 6cd8306 commit 943b2e8

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

gossipsub_test.go

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1368,16 +1368,6 @@ func TestGossipsubDynamicDirectPeers(t *testing.T) {
13681368
// give enough time to the state machine to process the direct additions
13691369
time.Sleep(200 * time.Millisecond)
13701370

1371-
// check that the nodes are indeed added as direct peers
1372-
_, h2presence := gs1.direct[h[2].ID()]
1373-
_, h1presence := gs2.direct[h[1].ID()]
1374-
if !h2presence || !h1presence {
1375-
t.Fatalf(
1376-
"expected direct connections at test peers, peer 1: (%d) and peer 2: (%d)",
1377-
len(gs1.direct), len(gs2.direct),
1378-
)
1379-
}
1380-
13811371
connect(t, h[0], h[1])
13821372
connect(t, h[0], h[2])
13831373

0 commit comments

Comments
 (0)