mirror of
https://github.com/webtorrent/bittorrent-tracker.git
synced 2024-12-13 10:56:25 +00:00
test: remove sample trackers
This commit is contained in:
parent
33ef0e2afe
commit
15147880a2
@ -3,7 +3,7 @@ var magnet = require('magnet-uri')
|
||||
var Server = require('../').Server
|
||||
var test = require('tape')
|
||||
|
||||
var uri = 'magnet:?xt=urn:btih:d2474e86c95b19b8bcfdb92bc12c9d44667cfa36&dn=Leaves+of+Grass+by+Walt+Whitman.epub&tr=udp%3A%2F%2Ftracker.openbittorrent.com%3A80'
|
||||
var uri = 'magnet:?xt=urn:btih:d2474e86c95b19b8bcfdb92bc12c9d44667cfa36&dn=Leaves+of+Grass+by+Walt+Whitman.epub'
|
||||
var parsedTorrent = magnet(uri)
|
||||
var peerId = new Buffer('01234567890123456789')
|
||||
|
||||
@ -24,7 +24,7 @@ test('magnet + udp: client.start/update/stop()', function (t) {
|
||||
var port = server.udp.address().port
|
||||
var announceUrl = 'udp://127.0.0.1:' + port
|
||||
|
||||
// remove all tracker servers except a single UDP one, for now
|
||||
// remove all tracker servers except a single UDP one
|
||||
parsedTorrent.announce = [ announceUrl ]
|
||||
|
||||
var client = new Client(peerId, 6881, parsedTorrent)
|
||||
|
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue
Block a user