Skip to content

Commit dbc7a08

Browse files
fix: flaky TestInvalidServer (#1049)
1 parent 017a9b8 commit dbc7a08

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

dht_test.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -1559,8 +1559,9 @@ func TestInvalidServer(t *testing.T) {
15591559
t.Fatal("DHT server should have been added to the misbehaving server routing table")
15601560
}
15611561

1562-
// connect s0 to both s1 and m1
1562+
// connect s0 to s1 first and then m1
15631563
connectNoSync(t, ctx, s0, s1)
1564+
wait(t, ctx, s0, s1)
15641565
connectNoSync(t, ctx, s0, m1)
15651566

15661567
// s1 should be added to s0's routing table. Then, because s0's routing table

0 commit comments

Comments
 (0)