From: Matt Joiner Date: Fri, 13 Nov 2015 12:36:38 +0000 (+1100) Subject: Test announcing to third party servers shouldn't fail if none respond X-Git-Tag: v1.0.0~984 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=b10c9921710fb770823d4bdb2025601c8a4daa17;p=btrtrc.git Test announcing to third party servers shouldn't fail if none respond --- diff --git a/tracker/udp_test.go b/tracker/udp_test.go index 39b19832..e7dc0a82 100644 --- a/tracker/udp_test.go +++ b/tracker/udp_test.go @@ -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. } }