better env var

This commit is contained in:
wphan
2023-07-05 20:09:22 -07:00
parent 64409374bc
commit 305b4e388e
2 changed files with 3 additions and 3 deletions

View File

@@ -2,8 +2,8 @@ import http from 'k6/http';
import { sleep } from 'k6';
export const options = {
vus: 555,
duration: '30s',
vus: 100,
duration: '60s',
ext: {
loadimpact: {
projectID: 3648966,

View File

@@ -68,7 +68,7 @@ const rateLimitCallsPerSecond = process.env.RATE_LIMIT_CALLS_PER_SECOND
: 10;
const loadTestAllowed =
process.env.LOAD_TEST_ALLOWED.toLowerCase() === 'true' ? true : false;
process.env.ALLOW_LOAD_TEST.toLowerCase() === 'true' ? true : false;
const logFormat =
':remote-addr - :remote-user [:date[clf]] ":method :url HTTP/:http-version" :status :res[content-length] ":referrer" ":user-agent" :req[x-forwarded-for]';