Skip to content

Commit 2535ff5

Browse files
NRL-1666 Apply same fix to producer tests as consumer tests. Now won't run on my machine with certificate expiry failures :(
1 parent 3fa2b60 commit 2535ff5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/performance/producer/client_perftest.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@ import { crypto } from "k6/experimental/webcrypto";
66
import { createRecord } from "../setup.js";
77
import exec from "k6/execution";
88

9-
// Parse CSV for deterministic pointer iteration
10-
const csv = open("../producer_reference_data.csv");
9+
const csvPath = __ENV.DIST_PATH
10+
? `../../../${__ENV.DIST_PATH}/producer_reference_data.csv`
11+
: "../producer_reference_data.csv";
12+
const csv = open(csvPath);
1113
const lines = csv.trim().split("\n");
1214
// Skip header
1315
const dataLines = lines.slice(1);

0 commit comments

Comments
 (0)