Skip to content

Commit a45a47a

Browse files
committed
test: make sure the routing table is full before proceeding
1 parent 5c8d25e commit a45a47a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ext_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ func TestHungRequest(t *testing.T) {
5151
for i := 0; i < 100 && d.routingTable.Size() == 0; i++ {
5252
time.Sleep(10 * time.Millisecond)
5353
}
54+
if d.routingTable.Size() == 0 {
55+
t.Fatal("failed to fill routing table")
56+
}
5457

5558
ctx1, cancel1 := context.WithTimeout(ctx, 1*time.Second)
5659
defer cancel1()

0 commit comments

Comments
 (0)