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()
|
||||
close(fail)
|
||||
}()
|
||||
// Bail as quickly as we can.
|
||||
select {
|
||||
case <-fail:
|
||||
t.FailNow()
|
||||
// It doesn't matter if they all fail, the servers could just be down.
|
||||
case <-success:
|
||||
// Bail as quickly as we can. One success is enough.
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user