network: drop some not really useful test code

SA4010: this result of append is never used, except maybe in other appends (staticcheck)
This commit is contained in:
Roman Khimov 2021-05-12 19:29:45 +03:00
parent b5ff87c2bd
commit 78bf172108

View file

@ -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")
}