Upping test rate limit level.
This commit is contained in:
parent
823b2cb6c4
commit
f74b83279d
1 changed files with 2 additions and 1 deletions
|
@ -19,7 +19,8 @@ const {
|
||||||
const { getRedisOptions } = require("@budibase/backend-core/redis").utils
|
const { getRedisOptions } = require("@budibase/backend-core/redis").utils
|
||||||
|
|
||||||
const PREFIX = "/api/public/v1"
|
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 {
|
function getApiLimitPerSecond(): number {
|
||||||
if (!env.API_REQ_LIMIT_PER_SEC) {
|
if (!env.API_REQ_LIMIT_PER_SEC) {
|
||||||
|
|
Loading…
Reference in a new issue