From b10c9921710fb770823d4bdb2025601c8a4daa17 Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Fri, 13 Nov 2015 23:36:38 +1100 Subject: [PATCH] Test announcing to third party servers shouldn't fail if none respond --- tracker/udp_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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. } } -- 2.48.1