mirror of
https://github.com/webtorrent/bittorrent-tracker.git
synced 2024-12-13 10:56:25 +00:00
cleanup tests
This commit is contained in:
parent
2b248d978f
commit
9e22aa40f1
@ -9,7 +9,6 @@ var parsedTorrent = parseTorrent(torrent)
|
||||
var peerId1 = new Buffer('01234567890123456789')
|
||||
var peerId2 = new Buffer('12345678901234567890')
|
||||
var peerId3 = new Buffer('23456789012345678901')
|
||||
var announceUrl = ''
|
||||
var port = 6881
|
||||
|
||||
function testClientStart (t, serverType) {
|
||||
|
@ -16,7 +16,7 @@ exports.createServer = function (t, serverType, cb) {
|
||||
portfinder.getPort(function (err, port) {
|
||||
if (err) return t.error(err)
|
||||
|
||||
announceUrl = serverType === 'http'
|
||||
var announceUrl = serverType === 'http'
|
||||
? 'http://127.0.0.1:' + port + '/announce'
|
||||
: 'udp://127.0.0.1:' + port
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user