From 78bf1721084800cd17813272ac06606f3bd04761 Mon Sep 17 00:00:00 2001 From: Roman Khimov Date: Wed, 12 May 2021 19:29:45 +0300 Subject: [PATCH] network: drop some not really useful test code SA4010: this result of append is never used, except maybe in other appends (staticcheck) --- pkg/network/discovery_test.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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") }