Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/webtorrent/webtorrent.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulen Garcia Leunda <hicom150@gmail.com>2020-11-12 19:06:59 +0300
committerJulen Garcia Leunda <hicom150@gmail.com>2020-11-12 19:06:59 +0300
commit7c34ba107a094f170385c8a387a254b46052e9c7 (patch)
tree4ab77343360ff1c68274f2da1c149102599ddd62 /test/node/download-private-dht.js
parent21fb2f8e02eaadaef3108a73a9dfd4579de74a6c (diff)
Fix tests disabling lsd option
Diffstat (limited to 'test/node/download-private-dht.js')
-rw-r--r--test/node/download-private-dht.js5
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 }
})