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/client-add.js
parent21fb2f8e02eaadaef3108a73a9dfd4579de74a6c (diff)
Fix tests disabling lsd option
Diffstat (limited to 'test/client-add.js')
-rw-r--r--test/client-add.js18
1 files changed, 9 insertions, 9 deletions
diff --git a/test/client-add.js b/test/client-add.js
index a016584..beced07 100644
--- a/test/client-add.js
+++ b/test/client-add.js
@@ -5,7 +5,7 @@ const WebTorrent = require('../')
test('client.add: magnet uri, utf-8 string', function (t) {
t.plan(6)
- const client = new WebTorrent({ dht: false, tracker: false })
+ const client = new WebTorrent({ dht: false, tracker: false, lsd: false })
client.on('error', function (err) { t.fail(err) })
client.on('warning', function (err) { t.fail(err) })
@@ -27,7 +27,7 @@ test('client.add: magnet uri, utf-8 string', function (t) {
test('client.add: torrent file, buffer', function (t) {
t.plan(6)
- const client = new WebTorrent({ dht: false, tracker: false })
+ const client = new WebTorrent({ dht: false, tracker: false, lsd: false })
client.on('error', function (err) { t.fail(err) })
client.on('warning', function (err) { t.fail(err) })
@@ -49,7 +49,7 @@ test('client.add: torrent file, buffer', function (t) {
test('client.add: info hash, hex string', function (t) {
t.plan(6)
- const client = new WebTorrent({ dht: false, tracker: false })
+ const client = new WebTorrent({ dht: false, tracker: false, lsd: false })
client.on('error', function (err) { t.fail(err) })
client.on('warning', function (err) { t.fail(err) })
@@ -71,7 +71,7 @@ test('client.add: info hash, hex string', function (t) {
test('client.add: info hash, buffer', function (t) {
t.plan(6)
- const client = new WebTorrent({ dht: false, tracker: false })
+ const client = new WebTorrent({ dht: false, tracker: false, lsd: false })
client.on('error', function (err) { t.fail(err) })
client.on('warning', function (err) { t.fail(err) })
@@ -93,7 +93,7 @@ test('client.add: info hash, buffer', function (t) {
test('client.add: parsed torrent, from `parse-torrent`', function (t) {
t.plan(6)
- const client = new WebTorrent({ dht: false, tracker: false })
+ const client = new WebTorrent({ dht: false, tracker: false, lsd: false })
client.on('error', function (err) { t.fail(err) })
client.on('warning', function (err) { t.fail(err) })
@@ -115,7 +115,7 @@ test('client.add: parsed torrent, from `parse-torrent`', function (t) {
test('client.add: parsed torrent, with string type announce property', function (t) {
t.plan(7)
- const client = new WebTorrent({ dht: false, tracker: false })
+ const client = new WebTorrent({ dht: false, tracker: false, lsd: false })
client.on('error', function (err) { t.fail(err) })
client.on('warning', function (err) { t.fail(err) })
@@ -146,7 +146,7 @@ test('client.add: parsed torrent, with string type announce property', function
test('client.add: parsed torrent, with array type announce property', function (t) {
t.plan(7)
- const client = new WebTorrent({ dht: false, tracker: false })
+ const client = new WebTorrent({ dht: false, tracker: false, lsd: false })
client.on('error', function (err) { t.fail(err) })
client.on('warning', function (err) { t.fail(err) })
@@ -177,7 +177,7 @@ test('client.add: parsed torrent, with array type announce property', function (
test('client.add: invalid torrent id: empty string', function (t) {
t.plan(3)
- const client = new WebTorrent({ dht: false, tracker: false })
+ const client = new WebTorrent({ dht: false, tracker: false, lsd: false })
client.on('error', function (err) {
t.ok(err instanceof Error)
@@ -193,7 +193,7 @@ test('client.add: invalid torrent id: empty string', function (t) {
test('client.add: invalid torrent id: short buffer', function (t) {
t.plan(3)
- const client = new WebTorrent({ dht: false, tracker: false })
+ const client = new WebTorrent({ dht: false, tracker: false, lsd: false })
client.on('error', function (err) {
t.ok(err instanceof Error)