]> Sergey Matveev's repositories - btrtrc.git/blobdiff - client_test.go
Support operating when IPv6 isn't available
[btrtrc.git] / client_test.go
index d2a88e9e7a769abcd1871092c006e37b33573a51..5463d41c3f37e09dbc3f7dd9bea30cc8792520e9 100644 (file)
@@ -339,6 +339,7 @@ func TestTorrentDroppedDuringResponsiveRead(t *testing.T) {
 }
 
 func TestDhtInheritBlocklist(t *testing.T) {
+       c := qt.New(t)
        ipl := iplist.New(nil)
        require.NotNil(t, ipl)
        cfg := TestingConfig(t)
@@ -353,7 +354,7 @@ func TestDhtInheritBlocklist(t *testing.T) {
                assert.Equal(t, ipl, s.(AnacrolixDhtServerWrapper).Server.IPBlocklist())
                numServers++
        })
-       assert.EqualValues(t, 2, numServers)
+       c.Assert(numServers, qt.Not(qt.Equals), 0)
 }
 
 // Check that stuff is merged in subsequent AddTorrentSpec for the same