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/blocklist-tracker.js')
-rw-r--r--test/blocklist-tracker.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/blocklist-tracker.js b/test/blocklist-tracker.js
index 2212c32..eefa338 100644
--- a/test/blocklist-tracker.js
+++ b/test/blocklist-tracker.js
@@ -15,7 +15,8 @@ test('blocklist blocks peers discovered via tracker', function (t) {
tracker: function (cb) {
var tracker = new TrackerServer({ udp: false })
- tracker.listen(function (port) {
+ tracker.listen(function () {
+ var port = tracker.http.address().port
var announceUrl = 'http://127.0.0.1:' + port + '/announce'
// Overwrite announce with our local tracker