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:
authorFeross Aboukhadijeh <feross@feross.org>2015-12-03 01:32:22 +0300
committerFeross Aboukhadijeh <feross@feross.org>2015-12-03 01:32:28 +0300
commitc06529d0e3837f45a58354f6d9e005adabed654e (patch)
treee6ba78ad876db674622a267860c59405a4ba38c4
parent0619d4dd37e881bd7778ddc6def6170544d334f1 (diff)
fix tests
-rw-r--r--test/basic-node.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/test/basic-node.js b/test/basic-node.js
index 70e9616..cff40eb 100644
--- a/test/basic-node.js
+++ b/test/basic-node.js
@@ -114,7 +114,10 @@ test('client.seed: filesystem path to folder with multiple files, string', funct
// match what transmission generated, since we use
// a different algo for picking piece length
- private: false // also force `private: false` to match transmission
+ private: false, // also force `private: false` to match transmission
+ announce: [
+ 'udp://tracker.webtorrent.io:80'
+ ]
}
var client = new WebTorrent({ dht: false, tracker: false })
@@ -124,7 +127,7 @@ test('client.seed: filesystem path to folder with multiple files, string', funct
client.seed(numbersPath, opts, function (torrent) {
t.equal(torrent.infoHash, '80562f38656b385ea78959010e51a2cc9db41ea0')
- t.equal(torrent.magnetURI, 'magnet:?xt=urn:btih:80562f38656b385ea78959010e51a2cc9db41ea0&dn=numbers&tr=udp%3A%2F%2Fexodus.desync.com%3A6969&tr=udp%3A%2F%2Ftracker.coppersurfer.tk%3A6969&tr=udp%3A%2F%2Ftracker.internetwarriors.net%3A1337&tr=udp%3A%2F%2Ftracker.leechers-paradise.org%3A6969&tr=udp%3A%2F%2Ftracker.openbittorrent.com%3A80&tr=wss%3A%2F%2Ftracker.webtorrent.io')
+ t.equal(torrent.magnetURI, 'magnet:?xt=urn:btih:80562f38656b385ea78959010e51a2cc9db41ea0&dn=numbers&tr=udp%3A%2F%2Ftracker.webtorrent.io%3A80')
client.destroy()
})
})