From f66942986122096df29d90eef69fd6064696eda6 Mon Sep 17 00:00:00 2001 From: rubenmoya Date: Tue, 7 Nov 2017 12:06:20 +0100 Subject: [PATCH] Fix windshaft provider tests --- lib/torque/provider/windshaft.js | 2 +- test/provider.windshaft.test.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/torque/provider/windshaft.js b/lib/torque/provider/windshaft.js index b003ae5..17d346a 100644 --- a/lib/torque/provider/windshaft.js +++ b/lib/torque/provider/windshaft.js @@ -305,7 +305,7 @@ : successCallback(self.proccessTile(body, coord, zoom)); } else { Profiler.metric('torque.provider.windshaft.tile.error').inc(); - callback(null); + successCallback(null); } }); }, diff --git a/test/provider.windshaft.test.js b/test/provider.windshaft.test.js index 11a87a3..6671530 100644 --- a/test/provider.windshaft.test.js +++ b/test/provider.windshaft.test.js @@ -26,7 +26,7 @@ QUnit.module('provider.windshaft', { testing: 'abcd%' } }); - }, + }, teardown: function() { torque.net.jsonp = old_net; torque.net.get = old_get; @@ -83,7 +83,7 @@ QUnit.module('provider.windshaft', { test("fetch tile", function() { windshaft._ready = true; - windshaft.getTileData({x: 0, y: 1, corrected: {x: 0, y: 1}}, 2, function() {}); + windshaft.getTileData({x: 0, y: 1, corrected: {x: 0, y: 1}}, 2, function() {}, function() {}); equal(lastCall,"http://rambo.cartodb.com:80/api/v1/map/testlg/0/2/0/1.json.torque?testing=abcd%25"); });