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:
Diffstat (limited to 'test/extensions.js')
-rw-r--r--test/extensions.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/extensions.js b/test/extensions.js
index 82943d7..4278a13 100644
--- a/test/extensions.js
+++ b/test/extensions.js
@@ -25,11 +25,11 @@ test('extension support', function (t) {
)
if (extendedHandshakes === 2) {
- client1.destroy(function () {
- t.pass('client1 destroyed')
+ client1.destroy(function (err) {
+ t.error(err, 'client1 destroyed')
})
- client2.destroy(function () {
- t.pass('client2 destroyed')
+ client2.destroy(function (err) {
+ t.error(err, 'client2 destroyed')
})
}
}
@@ -55,7 +55,7 @@ test('extension support', function (t) {
wire.use(Extension)
})
client2.on('listening', function () {
- torrent2.addPeer('127.0.0.1:' + client1.torrentPort)
+ torrent2.addPeer('127.0.0.1:' + client1.address().port)
})
})
})