diff options
author | Feross Aboukhadijeh <feross@feross.org> | 2015-12-22 00:46:04 +0300 |
---|---|---|
committer | Feross Aboukhadijeh <feross@feross.org> | 2015-12-27 23:18:06 +0300 |
commit | 748347861fc024dd6451be76d646a22ed7d1369b (patch) | |
tree | 95d08a16973b7ebd3e183d94fd8bd96248372b69 /test/blocklist-dht.js | |
parent | 728579c043dd027dc4557c6ce90a92e57518fbfb (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.js | 7 |
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') }) |