1
0
Fork 0
mirror of synced 2024-06-21 11:51:00 +12:00

Upping test rate limit level.

This commit is contained in:
mike12345567 2022-03-03 12:31:56 +00:00
parent 54137ec9fb
commit 86f649c5db

View file

@ -19,7 +19,8 @@ const {
const { getRedisOptions } = require("@budibase/backend-core/redis").utils
const PREFIX = "/api/public/v1"
const DEFAULT_API_REQ_LIMIT_PER_SEC = 10
// allow a lot more requests when in test
const DEFAULT_API_REQ_LIMIT_PER_SEC = env.isTest() ? 100 : 10
function getApiLimitPerSecond(): number {
if (!env.API_REQ_LIMIT_PER_SEC) {