We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3fa2b60 commit 2535ff5Copy full SHA for 2535ff5
tests/performance/producer/client_perftest.js
@@ -6,8 +6,10 @@ import { crypto } from "k6/experimental/webcrypto";
6
import { createRecord } from "../setup.js";
7
import exec from "k6/execution";
8
9
-// Parse CSV for deterministic pointer iteration
10
-const csv = open("../producer_reference_data.csv");
+const csvPath = __ENV.DIST_PATH
+ ? `../../../${__ENV.DIST_PATH}/producer_reference_data.csv`
11
+ : "../producer_reference_data.csv";
12
+const csv = open(csvPath);
13
const lines = csv.trim().split("\n");
14
// Skip header
15
const dataLines = lines.slice(1);
0 commit comments