diff options
Diffstat (limited to 'platform/node/test/render.test.js')
-rw-r--r-- | platform/node/test/render.test.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/platform/node/test/render.test.js b/platform/node/test/render.test.js index 2050677e9e..c366001576 100644 --- a/platform/node/test/render.test.js +++ b/platform/node/test/render.test.js @@ -13,9 +13,9 @@ if (process.argv[1] === __filename && process.argv.length > 2) { suite.run('native', {tests: tests}, function (style, options, callback) { var map = new mbgl.Map({ ratio: options.pixelRatio, - request: function (req) { + request: function(req, callback) { request(req.url, {encoding: null}, function (err, response, body) { - req.respond(err, {data: body}); + callback(err, {data: body}); }); } }); |