Skip to content

Commit

Permalink
Upping test rate limit level.
Browse files Browse the repository at this point in the history
  • Loading branch information
mike12345567 committed Mar 3, 2022
1 parent 54137ec commit 86f649c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/server/src/api/routes/public/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 86f649c

Please sign in to comment.