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
diff options
context:
space:
mode:
authorFeross Aboukhadijeh <feross@feross.org>2021-02-12 00:09:18 +0300
committerFeross Aboukhadijeh <feross@feross.org>2021-02-12 00:09:51 +0300
commit8746feb5af87017cf584b579fce94a5159ae284e (patch)
tree614d61a55ab65bdc6616f94486558f5d0c4f2910 /test
parente52705969dd429872df9a0d8dabdb396104c54d8 (diff)
fix tests – don't assume async ordering
Diffstat (limited to 'test')
-rw-r--r--test/node/download-webseed-torrent.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/node/download-webseed-torrent.js b/test/node/download-webseed-torrent.js
index 0a5c83d..0fafed0 100644
--- a/test/node/download-webseed-torrent.js
+++ b/test/node/download-webseed-torrent.js
@@ -78,6 +78,7 @@ test('Download using webseed (via .torrent file)', function (t) {
})
test('Disable webseeds', function (t) {
+ t.plan(3)
const parsedTorrent = Object.assign({}, fixtures.leaves.parsedTorrent)
const httpServer = http.createServer(function (req, res) {
@@ -115,7 +116,6 @@ test('Disable webseeds', function (t) {
})
httpServer.close(function () {
t.pass('http server closed')
- t.end()
})
})
})