diff --git a/pkg/network/discovery_test.go b/pkg/network/discovery_test.go index 9c8fb1aad..83464a26f 100644 --- a/pkg/network/discovery_test.go +++ b/pkg/network/discovery_test.go @@ -197,12 +197,10 @@ func TestSeedDiscovery(t *testing.T) { d := NewDefaultDiscovery(seeds, time.Second/10, ts) d.RequestRemote(len(seeds)) - dialled := make([]string, 0) for i := 0; i < connRetries*2; i++ { for range seeds { select { - case a := <-ts.dialCh: - dialled = append(dialled, a) + case <-ts.dialCh: case <-time.After(time.Second): t.Fatalf("timeout expecting for transport dial") }