Skip to content

Commit f148600

Browse files
committed
adds tracer override for k6 tests to not use opcodeLogger
Signed-off-by: Konstantina Blazhukova <konstantina.blajukova@gmail.com>
1 parent fc6ec55 commit f148600

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

k6/src/scenarios/test/debug_traceTransaction.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ const { options, run } = new TestScenarioBuilder()
1212
.request((testParameters) => {
1313
// Use existing transaction hash from test parameters
1414
const transactionHash = testParameters.DEFAULT_TRANSACTION_HASH;
15-
return http.post(testParameters.RELAY_BASE_URL, getPayLoad(methodName, [transactionHash]), httpParams);
15+
const tracerConfig = {"tracer": "callTracer"};
16+
return http.post(testParameters.RELAY_BASE_URL, getPayLoad(methodName, [transactionHash, tracerConfig]), httpParams);
1617
})
1718
.check(methodName, (r) => isNonErrorResponse(r))
1819
.maxDuration(5000) // Extended timeout for potentially slow debug responses

0 commit comments

Comments
 (0)