2
0
mirror of synced 2025-02-24 14:48:27 +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() 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.
} }
} }