diff options
Diffstat (limited to 'test/node/server.js')
-rw-r--r-- | test/node/server.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/node/server.js b/test/node/server.js index 4c7da45..62565b3 100644 --- a/test/node/server.js +++ b/test/node/server.js @@ -28,13 +28,13 @@ test('torrent.createServer: programmatic http server', function (t) { var host = 'http://localhost:' + port // Index page should list files in the torrent - get.concat(host + '/', function (err, data) { + get.concat(host + '/', function (err, res, data) { t.error(err, 'got http response for /') data = data.toString() t.ok(data.indexOf('Leaves of Grass by Walt Whitman.epub') !== -1) // Verify file content for first (and only) file - get.concat(host + '/0', function (err, data) { + get.concat(host + '/0', function (err, res, data) { t.error(err, 'got http response for /0') t.deepEqual(data, common.leaves.content) |