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
path: root/test/node
diff options
context:
space:
mode:
authorFeross Aboukhadijeh <feross@feross.org>2016-02-19 05:20:41 +0300
committerFeross Aboukhadijeh <feross@feross.org>2016-02-19 05:20:41 +0300
commit95454e147c1748da8b60a2921f084c927ea7ae3e (patch)
tree7fdff97605b9b79a94e93c669c7877ecc1931a6c /test/node
parent42f94e89b66f39d5f0079d7d22f902f4b2013ad3 (diff)
BREAKING: don't emit 'peer' event for invalid peers
Diffstat (limited to 'test/node')
-rw-r--r--test/node/blocklist-tracker.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/node/blocklist-tracker.js b/test/node/blocklist-tracker.js
index 90ac3be..cac9468 100644
--- a/test/node/blocklist-tracker.js
+++ b/test/node/blocklist-tracker.js
@@ -41,7 +41,7 @@ test('blocklist blocks peers discovered via tracker', function (t) {
var torrent1 = client1.add(parsedTorrent)
- torrent1.on('peer', function () {
+ torrent1.on('invalidPeer', function () {
t.pass('client1 found itself')
cb(null)
})