server tests: fix serverType in announceUrl

This commit is contained in:
Astro 2014-12-05 02:41:57 +01:00
parent f77015c046
commit 28189a0b12

View File

@ -26,7 +26,7 @@ function serverTest (t, serverType) {
})
server.listen(function (port) {
var announceUrl = 'http://127.0.0.1:' + port + '/announce'
var announceUrl = serverType + '://127.0.0.1:' + port + '/announce'
var client = new Client(peerId, 6881, {
infoHash: infoHash,