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-tracker-torrent.js')
-rw-r--r--test/node/download-tracker-torrent.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/node/download-tracker-torrent.js b/test/node/download-tracker-torrent.js
index c9068c5..a2ba8e0 100644
--- a/test/node/download-tracker-torrent.js
+++ b/test/node/download-tracker-torrent.js
@@ -1,6 +1,7 @@
var extend = require('xtend')
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 TrackerServer = require('bittorrent-tracker/server')
@@ -65,7 +66,7 @@ function torrentDownloadTest (t, serverType) {
torrent.load(fs.createReadStream(fixtures.leaves.contentPath), cb)
})
- client1.add(parsedTorrent)
+ client1.add(parsedTorrent, {store: MemoryChunkStore})
},
function (cb) {
@@ -73,7 +74,7 @@ function torrentDownloadTest (t, serverType) {
client2.on('error', function (err) { t.fail(err) })
client2.on('warning', function (err) { t.fail(err) })
- client2.add(parsedTorrent)
+ client2.add(parsedTorrent, {store: MemoryChunkStore})
client2.on('torrent', function (torrent) {
torrent.files.forEach(function (file) {