diff options
author | Feross Aboukhadijeh <feross@feross.org> | 2015-03-04 22:38:03 +0300 |
---|---|---|
committer | Feross Aboukhadijeh <feross@feross.org> | 2015-03-04 22:38:03 +0300 |
commit | 4f79919b455d766521a861f2469b6a5175ab733b (patch) | |
tree | 857ca46657fc607d1701768af5eaa0c80c54c20e /test | |
parent | 2c80448e3e2f32f3d75b33e69ff59e5488aa3618 (diff) |
bittorrent-dht@3
Diffstat (limited to 'test')
-rw-r--r-- | test/blocklist-dht.js | 3 | ||||
-rw-r--r-- | test/download-dht-magnet.js | 3 | ||||
-rw-r--r-- | test/download-dht-torrent.js | 3 |
3 files changed, 6 insertions, 3 deletions
diff --git a/test/blocklist-dht.js b/test/blocklist-dht.js index 33b0805..71dee81 100644 --- a/test/blocklist-dht.js +++ b/test/blocklist-dht.js @@ -23,7 +23,8 @@ test('blocklist blocks peers discovered via DHT', function (t) { auto({ dhtPort: function (cb) { - dhtServer.listen(function (port) { + dhtServer.listen(function () { + var port = dhtServer.address().port cb(null, port) }) }, diff --git a/test/download-dht-magnet.js b/test/download-dht-magnet.js index 6290464..0378fbb 100644 --- a/test/download-dht-magnet.js +++ b/test/download-dht-magnet.js @@ -26,7 +26,8 @@ test('Download using DHT (via magnet uri)', function (t) { auto({ dhtPort: function (cb) { - dhtServer.listen(function (port) { + dhtServer.listen(function () { + var port = dhtServer.address().port cb(null, port) }) }, diff --git a/test/download-dht-torrent.js b/test/download-dht-torrent.js index 09b9b50..42279c5 100644 --- a/test/download-dht-torrent.js +++ b/test/download-dht-torrent.js @@ -25,7 +25,8 @@ test('Download using DHT (via .torrent file)', function (t) { auto({ dhtPort: function (cb) { - dhtServer.listen(function (port) { + dhtServer.listen(function () { + var port = dhtServer.address().port cb(null, port) }) }, |