Test announcing to third party servers shouldn't fail if none respond
This commit is contained in:
parent
306013eba6
commit
b10c992171
@ -211,11 +211,11 @@ func TestAnnounceRandomInfoHashThirdParty(t *testing.T) {
|
|||||||
wg.Wait()
|
wg.Wait()
|
||||||
close(fail)
|
close(fail)
|
||||||
}()
|
}()
|
||||||
// Bail as quickly as we can.
|
|
||||||
select {
|
select {
|
||||||
case <-fail:
|
case <-fail:
|
||||||
t.FailNow()
|
// It doesn't matter if they all fail, the servers could just be down.
|
||||||
case <-success:
|
case <-success:
|
||||||
|
// Bail as quickly as we can. One success is enough.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user