Fix test for dht query context changes
This commit is contained in:
parent
7fa29b9e4d
commit
ddbba214da
@ -736,7 +736,9 @@ func TestAddMetainfoWithNodes(t *testing.T) {
|
||||
// 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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user