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/node
diff options
context:
space:
mode:
authorFeross Aboukhadijeh <feross@feross.org>2016-01-06 07:29:55 +0300
committerFeross Aboukhadijeh <feross@feross.org>2016-01-06 07:29:55 +0300
commit5d2ac0c5a9f652587aa9a2e52ee0d5ca4d60701b (patch)
treed55b8b14948cfba37bc81aa6cc189d8c83c6dd4f /test/node
parentb6ebb997d3f786e875e39a39a0d5753b7b909e6a (diff)
remove host option from test
Diffstat (limited to 'test/node')
-rw-r--r--test/node/blocklist-dht.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/test/node/blocklist-dht.js b/test/node/blocklist-dht.js
index 4ea82b1..5de3f8c 100644
--- a/test/node/blocklist-dht.js
+++ b/test/node/blocklist-dht.js
@@ -1,6 +1,5 @@
var common = require('../common')
var DHT = require('bittorrent-dht/server')
-var networkAddress = require('network-address')
var series = require('run-series')
var test = require('tape')
var WebTorrent = require('../../')
@@ -21,7 +20,7 @@ test('blocklist blocks peers discovered via DHT', function (t) {
function (cb) {
client1 = new WebTorrent({
tracker: false,
- dht: { bootstrap: '127.0.0.1:' + dhtServer.address().port, host: networkAddress.ipv4() }
+ dht: { bootstrap: '127.0.0.1:' + dhtServer.address().port }
})
client1.on('error', function (err) { t.fail(err) })
client1.on('warning', function (err) { t.fail(err) })
@@ -58,8 +57,8 @@ test('blocklist blocks peers discovered via DHT', function (t) {
function (cb) {
client2 = new WebTorrent({
tracker: false,
- dht: { bootstrap: '127.0.0.1:' + dhtServer.address().port, host: networkAddress.ipv4() },
- blocklist: [ '127.0.0.1', networkAddress.ipv4() ]
+ dht: { bootstrap: '127.0.0.1:' + dhtServer.address().port },
+ blocklist: [ '127.0.0.1' ]
})
client2.on('error', function (err) { t.fail(err) })
client2.on('warning', function (err) { t.fail(err) })