From e17dd4b5faaafc9efc7ff4d544e4a49c49e4158d Mon Sep 17 00:00:00 2001 From: Javier Goizueta Date: Wed, 11 Jul 2018 13:19:07 +0200 Subject: [PATCH] Make tests independent of coordinate accuracy by not placing points near tile boundaries --- test/acceptance/aggregation.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/acceptance/aggregation.js b/test/acceptance/aggregation.js index 193330d5..90b23e79 100644 --- a/test/acceptance/aggregation.js +++ b/test/acceptance/aggregation.js @@ -112,10 +112,10 @@ describe('aggregation', function () { const POINTS_SQL_PAIRS = ` -- Generate pairs of near points select - x + 4 as cartodb_id, - st_setsrid(st_makepoint(Floor(x/2)*10 + x/1000.0, Floor(x/2)*10 + x/1000.0), 4326) as the_geom, + x + 7 as cartodb_id, + st_setsrid(st_makepoint(Floor(x/2)*10 + 9E-3*(x % 2), Floor(x/2)*10 + 9E-3*(x % 2)), 4326) as the_geom, st_transform( - st_setsrid(st_makepoint(Floor(x/2)*10 + x/1000.0, Floor(x/2)*10 + x/1000.0),4326), + st_setsrid(st_makepoint(Floor(x/2)*10 + 9E-3*(x % 2), Floor(x/2)*10 + 9E-3*(x % 2)),4326), 3857) as the_geom_webmercator, x as value from generate_series(-6, 6) x