cleanup tests

This commit is contained in:
Feross Aboukhadijeh 2014-07-23 19:16:23 -07:00
parent 2b248d978f
commit 9e22aa40f1
2 changed files with 1 additions and 2 deletions

View File

@ -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) {

View File

@ -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