diff options
author | Julen Garcia Leunda <hicom150@gmail.com> | 2020-11-12 19:06:59 +0300 |
---|---|---|
committer | Julen Garcia Leunda <hicom150@gmail.com> | 2020-11-12 19:06:59 +0300 |
commit | 7c34ba107a094f170385c8a387a254b46052e9c7 (patch) | |
tree | 4ab77343360ff1c68274f2da1c149102599ddd62 /test/node/download-private-dht.js | |
parent | 21fb2f8e02eaadaef3108a73a9dfd4579de74a6c (diff) |
Fix tests disabling lsd option
Diffstat (limited to 'test/node/download-private-dht.js')
-rw-r--r-- | test/node/download-private-dht.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/node/download-private-dht.js b/test/node/download-private-dht.js index b13f494..036c889 100644 --- a/test/node/download-private-dht.js +++ b/test/node/download-private-dht.js @@ -23,6 +23,7 @@ test('private torrent should not use DHT', function (t) { function (cb) { client = new WebTorrent({ tracker: false, + lsd: false, dht: { bootstrap: '127.0.0.1:' + dhtServer.address().port } }) @@ -72,8 +73,10 @@ test('public torrent should use DHT', function (t) { function (cb) { client = new WebTorrent({ tracker: false, + lsd: false, dht: { bootstrap: '127.0.0.1:' + dhtServer.address().port } }) + client.on('error', function (err) { t.fail(err) }) client.on('warning', function (err) { t.fail(err) }) @@ -120,6 +123,7 @@ test('public torrent with forced private option should not use DHT', function (t function (cb) { client = new WebTorrent({ tracker: false, + lsd: false, dht: { bootstrap: '127.0.0.1:' + dhtServer.address().port } }) @@ -172,6 +176,7 @@ test('private torrent with forced public option should use DHT', function (t) { function (cb) { client = new WebTorrent({ tracker: false, + lsd: false, dht: { bootstrap: '127.0.0.1:' + dhtServer.address().port } }) |