From 4742e7f64f681f3d85ed5a663496a9a45bdaf4d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20Mart=C3=ADn?= Date: Fri, 16 Feb 2018 09:06:14 +0100 Subject: [PATCH] skiping some tests --- test/unit/cartodb/rate-limit.test.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/unit/cartodb/rate-limit.test.js b/test/unit/cartodb/rate-limit.test.js index b64e11e8..a33a3d3c 100644 --- a/test/unit/cartodb/rate-limit.test.js +++ b/test/unit/cartodb/rate-limit.test.js @@ -35,7 +35,7 @@ function getReqAndRes() { }; } -describe.only('rate-limit', function() { +describe('rate-limit', function() { before(function() { const redisPool = new RedisPool(global.environment.redis); const metadataBackend = cartodbRedis({pool: redisPool}); @@ -227,6 +227,8 @@ describe.only('rate-limit', function() { ); }); + // skipped: not always limits the same requests + // created to test the behavior of redis-cell it.skip("2 req/sec: 10 request (1 per 100ms) should be: 1 not limited, 4 limited", function(done) { const count = 2; const period = 1; @@ -283,6 +285,8 @@ describe.only('rate-limit', function() { setTimeout(done, 3400); }); + // skipped: not always limits the same requests + // created to test the behavior of redis-cell it.skip("5 req/sec: 10 request (1 per 100ms) should be: 1 not limited, 1 limited", function(done) { const count = 5; const period = 1;