Skip to content
This repository was archived by the owner on Aug 7, 2025. It is now read-only.

Commit 4504ac7

Browse files
committed
parameterize perf test address
1 parent d86f223 commit 4504ac7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/perf/src/test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
import { check } from "k6";
22
import http from "k6/http";
33

4+
const VENUE_ADDRESS = __ENV.VENUE_ADDRESS || "http://127.0.0.1:8080";
5+
46
export const options = {
57
vus: 1000,
68
duration: "10s",
79
};
810

911
export default function () {
10-
const res = http.get("http://127.0.0.1:8080/talk/the-mother-of-all-demos");
12+
const res = http.get(`${VENUE_ADDRESS}/talk/the-mother-of-all-demos`);
1113
check(res, {
1214
"is status 200": (r) => r.status === 200,
1315
});

0 commit comments

Comments
 (0)