diff --git a/test/acceptance/ported/torque_zero_zero.js b/test/acceptance/ported/torque_zero_zero.js index fe6755ae..30ff14a0 100644 --- a/test/acceptance/ported/torque_zero_zero.js +++ b/test/acceptance/ported/torque_zero_zero.js @@ -19,13 +19,15 @@ describe('torque tiles at 0,0 point', function() { what: 'tl', x: 3, y: 3, - expects: [] + expects: [], + expects_fixed: [{"x__uint8":1,"y__uint8":0,"vals__uint8":[1],"dates__uint16":[0]}] }, { what: 'tr', x: 4, y: 3, - expects: [] + expects: [], + expects_fixed: [{"x__uint8":0,"y__uint8":0,"vals__uint8":[1],"dates__uint16":[0]}] }, { what: 'bl', @@ -74,7 +76,13 @@ describe('torque tiles at 0,0 point', function() { }; testClient.getTorque(mapConfig, 0, 3, tile.x, tile.y, function(err, res) { - assert.deepEqual(JSON.parse(res.body), tile.expects); + assert.ok(!err, err); + try { + assert.deepEqual(JSON.parse(res.body), tile.expects); + } catch (ex) { + // With Proj 5.1 this bug has been fixed and the point appears in all tiles + assert.deepEqual(JSON.parse(res.body), tile.expects_fixed); + } done(); }); });