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-07-27 03:14:49 +0300
committerFeross Aboukhadijeh <feross@feross.org>2015-07-27 03:14:49 +0300
commit66ab7d24251a9c2816beca2fc17d9a1785427a49 (patch)
treebbfe3b75e720b352083483f58dfca7d156102bf6 /test/blocklist-dht.js
parentd8bceb285aa84ffcd0df2346075d4cd688c4003f (diff)
stricter tests: 'warning' events are failures
Diffstat (limited to 'test/blocklist-dht.js')
-rw-r--r--test/blocklist-dht.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/test/blocklist-dht.js b/test/blocklist-dht.js
index 9b4cb47..3e8710b 100644
--- a/test/blocklist-dht.js
+++ b/test/blocklist-dht.js
@@ -17,9 +17,8 @@ test('blocklist blocks peers discovered via DHT', function (t) {
var dhtServer = new DHT({ bootstrap: false })
- dhtServer.on('error', function (err) {
- t.fail(err)
- })
+ dhtServer.on('error', function (err) { t.fail(err) })
+ dhtServer.on('warning', function (err) { t.fail(err) })
auto({
dhtPort: function (cb) {
@@ -35,6 +34,7 @@ test('blocklist blocks peers discovered via DHT', function (t) {
dht: { bootstrap: '127.0.0.1:' + r.dhtPort }
})
client1.on('error', function (err) { t.fail(err) })
+ client1.on('warning', function (err) { t.fail(err) })
var torrent1 = client1.add(leavesParsed)
@@ -61,6 +61,7 @@ test('blocklist blocks peers discovered via DHT', function (t) {
blocklist: [ '127.0.0.1', networkAddress.ipv4() ]
})
client2.on('error', function (err) { t.fail(err) })
+ client2.on('warning', function (err) { t.fail(err) })
var torrent2 = client2.add(leavesParsed)