2
0
mirror of synced 2025-02-23 22:28:11 +00:00

Fix test for dht query context changes

This commit is contained in:
Matt Joiner 2019-01-21 22:36:40 +01:00
parent 7fa29b9e4d
commit ddbba214da

View File

@ -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 {