Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test excessive Memory Usage #1211

Closed
wants to merge 5 commits into from
Closed
Changes from 1 commit
Commits
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.

Always

Just for now

testing Buffer packages

  • Loading branch information
disarticulate committed Oct 25, 2017
commit 66d8d4d69270d4f3dc53d52b2a2ff56a2b580ccf
@@ -1,4 +1,5 @@
var Buffer = require('safe-buffer').Buffer
// var Buffer = require('safe-buffer').Buffer
var Buffer = require('buffer').Buffer
var test = require('tape')
var WebTorrent = require('../../')
var fs = require('fs')
@@ -18,13 +19,16 @@ img3.name = 'img3.png'
test('seed Multiple Torrents', function (t) {
t.plan(3)
var client = new WebTorrent({ dht: false, tracker: false })

client.seed(img, function (torrent) {
t.equal(torrent.infoHash,'fe83c6629dc58cc08b7809256000ad068a167b95')
})

client.seed(img2, function (torrent) {
t.equal(torrent.infoHash, 'fd5c8c050571e1f8c369541ed5560f7696931e3f')
})
client.seed(img3, function (torrent) {
t.equal(torrent.infoHash,'c36facf1ca9d3071a81bc8f85f77d3fa3b684048')
})

})
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.