]> Sergey Matveev's repositories - btrtrc.git/commitdiff
Test announcing to third party servers shouldn't fail if none respond
authorMatt Joiner <anacrolix@gmail.com>
Fri, 13 Nov 2015 12:36:38 +0000 (23:36 +1100)
committerMatt Joiner <anacrolix@gmail.com>
Fri, 13 Nov 2015 12:36:38 +0000 (23:36 +1100)
tracker/udp_test.go

index 39b19832c790369f0c04fa13e943f7245b38232c..e7dc0a82950ab566cf355ddd3440436b8f3d4f0a 100644 (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.
        }
 }