We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 906ac8f commit 297911cCopy full SHA for 297911c
ext_test.go
@@ -28,7 +28,7 @@ func TestHungRequest(t *testing.T) {
28
ctx, cancel := context.WithCancel(context.Background())
29
defer cancel()
30
31
- mn, err := mocknet.FullMeshConnected(ctx, 2)
+ mn, err := mocknet.FullMeshLinked(ctx, 2)
32
if err != nil {
33
t.Fatal(err)
34
}
@@ -47,6 +47,11 @@ func TestHungRequest(t *testing.T) {
47
})
48
49
50
+ err = mn.ConnectAllButSelf()
51
+ if err != nil {
52
+ t.Fatal("failed to connect peers", err)
53
+ }
54
+
55
// Wait at a bit for a peer in our routing table.
56
for i := 0; i < 100 && d.routingTable.Size() == 0; i++ {
57
time.Sleep(10 * time.Millisecond)
0 commit comments