diff options
author | Feross Aboukhadijeh <feross@feross.org> | 2015-12-03 01:32:22 +0300 |
---|---|---|
committer | Feross Aboukhadijeh <feross@feross.org> | 2015-12-03 01:32:28 +0300 |
commit | c06529d0e3837f45a58354f6d9e005adabed654e (patch) | |
tree | e6ba78ad876db674622a267860c59405a4ba38c4 | |
parent | 0619d4dd37e881bd7778ddc6def6170544d334f1 (diff) |
fix tests
-rw-r--r-- | test/basic-node.js | 7 |
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() }) }) |