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
path: root/test
diff options
context:
space:
mode:
authorDiego Rodríguez Baquero <diegorbaquero@gmail.com>2017-02-20 14:56:01 +0300
committerGitHub <noreply@github.com>2017-02-20 14:56:01 +0300
commit1ad3c0f7d3ab8512fc2f0bbdf2dd764e8af4f468 (patch)
tree23f7124b4700c864cce52ad058c9c4811b78851d /test
parentf7211c7df4ea2de35fc3882e057f392f08fe7b99 (diff)
Use random port
Diffstat (limited to 'test')
-rw-r--r--test/node/seed-while-download.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/node/seed-while-download.js b/test/node/seed-while-download.js
index 0581064..0ee61ad 100644
--- a/test/node/seed-while-download.js
+++ b/test/node/seed-while-download.js
@@ -54,8 +54,7 @@ test('Seed and download a file at the same time', function (t) {
function (cb) {
client2 = new WebTorrent({
tracker: false,
- dht: { bootstrap: '127.0.0.1:' + dhtServer.address().port },
- torrentPort: client1.torrentPort + 1
+ dht: { bootstrap: '127.0.0.1:' + dhtServer.address().port }
})
client2.on('error', function (err) { t.fail(err) })