using a real endpoint in test
This commit is contained in:
@@ -84,7 +84,7 @@ function rateLimitMiddleware(metadataBackend, endpointGroup = null) {
|
||||
return next();
|
||||
});
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
|
||||
@@ -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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user