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:
parent
b5ff87c2bd
commit
78bf172108
1 changed files with 1 additions and 3 deletions
|
@ -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")
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue