Skip to content

Commit debf763

Browse files
committed
src/environments: increase rate limit for tests
Increase express-rate-limit limit for test environment because we were seeing "429: Too Many Requests" causing failures of Cypress in CI.
1 parent f60bd1a commit debf763

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/environments/environment.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,10 @@ export const environment: BuildConfig = {
4545
// NOTE: Space is capitalized because 'namespace' is a reserved string in TypeScript
4646
nameSpace: '/angular-dspace',
4747
baseUrl: 'http://dspace.com/angular-dspace',
48-
// The rateLimiter settings limit each IP to a 'limit' of 20 requests per 'windowMs' (1 minute).
48+
// The rateLimiter settings limit each IP to a 'limit' of 500 requests per 'windowMs' (1 minute).
4949
rateLimiter: {
5050
windowMs: 1 * 60 * 1000, // 1 minute
51-
limit: 20, // limit each IP to 20 requests per windowMs
51+
limit: 500, // limit each IP to 500 requests per windowMs
5252
ipv6Subnet: 56,
5353
},
5454
useProxies: true,

0 commit comments

Comments
 (0)