From 153ae3ea3d1e980ceea292a4311d24527dcfadc8 Mon Sep 17 00:00:00 2001 From: Rafa de la Torre Date: Mon, 23 Jul 2018 15:36:13 +0200 Subject: [PATCH] Fix test: increase timeout for DB quota middleware In order to give the DB quota middleware a chance of getting executed, increase the 1 ms timeout to 10 ms. This is short but enough, as the quota mocks are constant functions. --- test/acceptance/copy-endpoints.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/acceptance/copy-endpoints.js b/test/acceptance/copy-endpoints.js index dc07ba4d..33d1562a 100644 --- a/test/acceptance/copy-endpoints.js +++ b/test/acceptance/copy-endpoints.js @@ -426,7 +426,7 @@ describe('copy-endpoints', function() { describe('COPY timeouts: they can take longer than statement_timeout', function() { before('set a very small statement_timeout for regular queries', function(done) { assert.response(server, { - url: '/api/v1/sql?q=set statement_timeout = 1', + url: '/api/v1/sql?q=set statement_timeout = 10', headers: {host: 'vizzuality.cartodb.com'}, method: 'GET' }, done);