Skip to content

Commit 14ceb82

Browse files
committed
Changed limit to 1 minute
1 parent ba2318c commit 14ceb82

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

routes/__tests__/set.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const addAuth = (req, res, next) => {
1616
// Rate limiting for tests - allows unlimited requests in test environment
1717
import rateLimit from 'express-rate-limit'
1818
const limiter = rateLimit({
19-
windowMs: 1000, // 1 second for tests
19+
windowMs: 60 * 1000, // 1 minute for tests
2020
max: 1000, // allow many requests in test environment
2121
message: 'Too many requests from this IP, please try again later.',
2222
standardHeaders: true,

0 commit comments

Comments
 (0)