fix: the test of peering.PeeringService
This commit fixes the issue that the test of peering.PeeringService must check the connection of h3 but did not. This line seemed to be unintended.
Takashi Matsuda committed
May 15, 2021 at 11:34 UTC
b3a6de8c6d3fa1649794d7ec9aa2e96adda875bd
1 file changed
+1
-1
peering/peering_test.go
+1
-1
@@ -66,7 +66,7 @@ func TestPeeringService(t *testing.T) {
66
t.Logf("waiting for h1's connection to h3 to work")
67
require.NoError(t, h1.Connect(ctx, peer.AddrInfo{ID: h3.ID(), Addrs: h3.Addrs()}))
68
require.Eventually(t, func() bool {
69
- return h1.Network().Connectedness(h2.ID()) == network.Connected
69
+ return h1.Network().Connectedness(h3.ID()) == network.Connected
70
}, 30*time.Second, 100*time.Millisecond)
71
72
require.Len(t, h1.Network().Peers(), 3)