2
0
mirror of synced 2025-02-24 06:38:14 +00:00

Test announcing to third party servers shouldn't fail if none respond

This commit is contained in:
Matt Joiner 2015-11-13 23:36:38 +11:00
parent 306013eba6
commit b10c992171

View File

@ -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.
}
}