Skip to content

Commit d2a05e4

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 d2a05e4

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

tests/performance/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,15 @@ some high level context short
77
### Prepare
88

99
```sh
10+
assume management
11+
make truststore-pull-all ENV=<env> # e.g. perftest
12+
cd ./terraform/infrastructure
13+
tf workspace select # perftest-1 or active stack
14+
cd ../../ # project root
1015
assume dev
1116
make perftest-prepare PERFTEST_TABLE_NAME=<POINTER_TABLE_NAME>
17+
18+
make perftest-consumer ENV_TYPE=<env> # e.g. perftest
1219
```
1320
1421
choose existing table name/create table with this script > `PERFTEST_TABLE_NAME` env var

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)