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:
authorFeross Aboukhadijeh <feross@feross.org>2015-12-22 00:46:04 +0300
committerFeross Aboukhadijeh <feross@feross.org>2015-12-27 23:18:06 +0300
commit748347861fc024dd6451be76d646a22ed7d1369b (patch)
tree95d08a16973b7ebd3e183d94fd8bd96248372b69 /test/blocklist-dht.js
parent728579c043dd027dc4557c6ce90a92e57518fbfb (diff)
test: All remaining tests use new fixtures
- Tests use new fixtures in common.js - Tests ensure that destroy callbacks don’t fire an error
Diffstat (limited to 'test/blocklist-dht.js')
-rw-r--r--test/blocklist-dht.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/test/blocklist-dht.js b/test/blocklist-dht.js
index 0233c7c..852dc17 100644
--- a/test/blocklist-dht.js
+++ b/test/blocklist-dht.js
@@ -6,7 +6,7 @@ var test = require('tape')
var WebTorrent = require('../')
test('blocklist blocks peers discovered via DHT', function (t) {
- t.plan(8)
+ t.plan(9)
var dhtServer, client1, client2
@@ -80,9 +80,8 @@ test('blocklist blocks peers discovered via DHT', function (t) {
})
}
- ], function (err, r) {
- if (err) throw err
-
+ ], function (err) {
+ t.error(err)
dhtServer.destroy(function (err) {
t.error(err, 'dht server destroyed')
})