client_test.go | 4 +++- diff --git a/client_test.go b/client_test.go index 363542c1a3a55e1df0700d19eb3a21f135419a47..5f7055df1f711400241acbd8e56e3e81fd472035 100644 --- a/client_test.go +++ b/client_test.go @@ -736,7 +736,9 @@ // Nodes are not added or exposed in Torrent's metainfo. We just randomly // check if the announce-list is here instead. TODO: Add nodes. assert.Len(t, tt.metainfo.AnnounceList, 5) // There are 6 nodes in the torrent file. - assert.EqualValues(t, 6*len(cl.dhtServers), sum()) + for sum() != int64(6*len(cl.dhtServers)) { + time.Sleep(time.Millisecond) + } } type testDownloadCancelParams struct {