using a real endpoint in test

This commit is contained in:
Simon Martín
2018-02-19 17:08:26 +01:00
parent e103427750
commit 98907a886c
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -84,7 +84,7 @@ function rateLimitMiddleware(metadataBackend, endpointGroup = null) {
return next();
});
};
};
}
/**
+1 -1
View File
@@ -42,7 +42,7 @@ describe.only('rate-limit', function() {
before(function() {
const redisPool = new RedisPool(global.environment.redis);
const metadataBackend = cartodbRedis({pool: redisPool});
rateLimit = rateLimitMiddleware(metadataBackend);
rateLimit = rateLimitMiddleware(metadataBackend, RATE_LIMIT_ENDPOINTS_GROUPS.ENDPOINT_8);
redisClient = redis.createClient(global.environment.redis.port);
});