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/blocklist.js | |
parent | 21fb2f8e02eaadaef3108a73a9dfd4579de74a6c (diff) |
Fix tests disabling lsd option
Diffstat (limited to 'test/node/blocklist.js')
-rw-r--r-- | test/node/blocklist.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/node/blocklist.js b/test/node/blocklist.js index 6a5af5e..4ff686a 100644 --- a/test/node/blocklist.js +++ b/test/node/blocklist.js @@ -25,6 +25,7 @@ test('blocklist (single IP)', function (t) { const client = new WebTorrent({ dht: false, tracker: false, + lsd: false, blocklist: ['1.2.3.4'] }) client.on('error', function (err) { t.fail(err) }) @@ -51,6 +52,7 @@ test('blocklist (array of IPs)', function (t) { const client = new WebTorrent({ dht: false, tracker: false, + lsd: false, blocklist: ['1.2.3.4', '5.6.7.8'] }) .on('error', function (err) { t.fail(err) }) @@ -115,6 +117,7 @@ test('blocklist (array of IP ranges)', function (t) { const client = new WebTorrent({ dht: false, tracker: false, + lsd: false, blocklist: [ { start: '1.2.3.0', end: '1.2.3.255' }, { start: '5.6.7.0', end: '5.6.7.255' } @@ -147,6 +150,7 @@ test('blocklist (http url)', function (t) { const client = new WebTorrent({ dht: false, tracker: false, + lsd: false, blocklist: url }) .on('error', function (err) { t.fail(err) }) @@ -183,6 +187,7 @@ test('blocklist (http url with gzip encoding)', function (t) { const client = new WebTorrent({ dht: false, tracker: false, + lsd: false, blocklist: url }) .on('error', function (err) { t.fail(err) }) @@ -219,6 +224,7 @@ test('blocklist (http url with deflate encoding)', function (t) { const client = new WebTorrent({ dht: false, tracker: false, + lsd: false, blocklist: url }) .on('error', function (err) { t.fail(err) }) @@ -242,6 +248,7 @@ test('blocklist (fs path)', function (t) { const client = new WebTorrent({ dht: false, tracker: false, + lsd: false, blocklist: fixtures.blocklist.path }) .on('error', function (err) { t.fail(err) }) @@ -261,6 +268,7 @@ test('blocklist (fs path with gzip)', function (t) { const client = new WebTorrent({ dht: false, tracker: false, + lsd: false, blocklist: fixtures.blocklist.gzipPath }) .on('error', function (err) { t.fail(err) }) |