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/node/download-dht-torrent.js')
-rw-r--r--test/node/download-dht-torrent.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/node/download-dht-torrent.js b/test/node/download-dht-torrent.js
index 0bc6961..5182dd3 100644
--- a/test/node/download-dht-torrent.js
+++ b/test/node/download-dht-torrent.js
@@ -1,6 +1,7 @@
var DHT = require('bittorrent-dht/server')
var fixtures = require('webtorrent-fixtures')
var fs = require('fs')
+var MemoryChunkStore = require('memory-chunk-store')
var series = require('run-series')
var test = require('tape')
var WebTorrent = require('../../')
@@ -33,7 +34,7 @@ test('Download using DHT (via .torrent file)', function (t) {
client1.on('error', function (err) { t.fail(err) })
client1.on('warning', function (err) { t.fail(err) })
- var torrent = client1.add(fixtures.leaves.parsedTorrent)
+ var torrent = client1.add(fixtures.leaves.parsedTorrent, {store: MemoryChunkStore})
torrent.on('ready', function () {
// torrent metadata has been fetched -- sanity check it
@@ -99,7 +100,7 @@ test('Download using DHT (via .torrent file)', function (t) {
}
})
- client2.add(fixtures.leaves.parsedTorrent)
+ client2.add(fixtures.leaves.parsedTorrent, {store: MemoryChunkStore})
}
], function (err) {
t.error(err)