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.
This commit is contained in:
parent
44858df713
commit
153ae3ea3d
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user