Skip to content

Commit

Permalink
Update processor.ts for verbosity
Browse files Browse the repository at this point in the history
  • Loading branch information
acouch committed Nov 12, 2024
1 parent 634af0b commit 655261a
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions frontend/tests/artillery/processor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,13 @@ async function getSearchQuery(context: { vars: returnVars & dataType }) {
},
{
percent: 10,
params: [queryParam, statusParam, agencyParam, categoryParam, eligibility],
params: [
queryParam,
statusParam,
agencyParam,
categoryParam,
eligibilityParam,
],
},
];
// Weight of percents out of 100
Expand All @@ -94,7 +100,7 @@ async function loadData(context: { vars: dataType & globalVars }) {
// Dev and stage have the same data.
const env =
context.vars.$environment === "stage" ? "dev" : context.vars.$environment;
const envs = new Set(["local", "dev", "prod"]);
const envs = new Set(["local", "dev", "stage", "prod"]);
if (!env || !envs.has(env)) {
throw new Error(`env ${env ?? ""} does not exist in env list`);
}
Expand Down

0 comments on commit 655261a

Please sign in to comment.