From e5b9c1d7ad26449f555ef4ef6397d33f9dd62084 Mon Sep 17 00:00:00 2001
From: Marten Seemann <martenseemann@gmail.com>
Date: Thu, 10 Mar 2022 18:04:44 +0100
Subject: [PATCH] fix flaky BackoffConnector test

---
 p2p/discovery/backoff/backoffconnector_test.go | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/p2p/discovery/backoff/backoffconnector_test.go b/p2p/discovery/backoff/backoffconnector_test.go
index 2e7433e9ff..ca3498e996 100644
--- a/p2p/discovery/backoff/backoffconnector_test.go
+++ b/p2p/discovery/backoff/backoffconnector_test.go
@@ -86,12 +86,12 @@ func TestBackoffConnector(t *testing.T) {
 	require.Eventually(t, func() bool { return len(primary.Network().Peers()) == 0 }, 3*time.Second, 10*time.Millisecond)
 
 	bc.Connect(context.Background(), loadCh(hosts))
-	require.Empty(t, primary.Network().Conns(), "shouldn't be connected to any peers")
+	require.Empty(t, primary.Network().Peers(), "shouldn't be connected to any peers")
 
 	time.Sleep(time.Millisecond * 500)
 	bc.Connect(context.Background(), loadCh(hosts))
 	require.Eventually(t, func() bool { return len(primary.Network().Peers()) == len(hosts)-2 }, 3*time.Second, 10*time.Millisecond)
 	// make sure we actually don't connect to host 1 any more
 	time.Sleep(100 * time.Millisecond)
-	require.Len(t, primary.Network().Conns(), len(hosts)-2, "wrong number of connections")
+	require.Len(t, primary.Network().Peers(), len(hosts)-2, "wrong number of connections")
 }