From b023a155b7782faa52aae6b430f88979f3d28b00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Garc=C3=ADa=20Aubert?= Date: Fri, 28 Jul 2017 13:21:17 +0200 Subject: [PATCH] Be more accurate with timeouts and pg_sleep --- test/acceptance/user-database-timeout-limit.js | 4 ++-- test/acceptance/user-render-timeout-limit.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/acceptance/user-database-timeout-limit.js b/test/acceptance/user-database-timeout-limit.js index 32976b37..c59b26df 100644 --- a/test/acceptance/user-database-timeout-limit.js +++ b/test/acceptance/user-database-timeout-limit.js @@ -5,7 +5,7 @@ const TestClient = require('../support/test-client'); const pointSleepSql = ` SELECT - pg_sleep(1), + pg_sleep(0.5), 'SRID=3857;POINT(0 0)'::geometry the_geom_webmercator, 1 cartodb_id, 2 val @@ -55,7 +55,7 @@ const createMapConfig = ({ describe('user database timeout limit', function () { beforeEach(function (done) { - TestClient.setUserDatabaseTimeoutLimit('localhost', 50, done); + TestClient.setUserDatabaseTimeoutLimit('localhost', 300, done); }); afterEach(function (done) { diff --git a/test/acceptance/user-render-timeout-limit.js b/test/acceptance/user-render-timeout-limit.js index 8d7e9a6e..0119a1b9 100644 --- a/test/acceptance/user-render-timeout-limit.js +++ b/test/acceptance/user-render-timeout-limit.js @@ -16,7 +16,7 @@ const pointSleepSql = ` // during instatiation we validate tile 30/0/0, creating a point in that tile `pg_sleep` will throw a timeout const validationPointSleepSql = ` SELECT - pg_sleep(1), + pg_sleep(0.5), ST_Transform('SRID=4326;POINT(-180 85.05112877)'::geometry, 3857) the_geom_webmercator, 1 cartodb_id, 2 val