Skip to content

Commit e1a74b9

Browse files
fix: fixes failing acceptance test (#4612)
Signed-off-by: Konstantina Blazhukova <konstantina.blajukova@gmail.com>
1 parent c004a57 commit e1a74b9

File tree

3 files changed

+15
-12
lines changed

3 files changed

+15
-12
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

packages/server/tests/acceptance/debug.spec.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ describe('@debug API Acceptance Tests', function () {
417417
});
418418

419419
describe('Call Tracer', () => {
420-
it('should trace a transaction using CallTracer with onlyTopCall=false', async function () {
420+
it('@release should trace a transaction using CallTracer with onlyTopCall=false', async function () {
421421
// Call debug_traceTransaction with CallTracer (default config)
422422
const result = await relay.call(DEBUG_TRACE_TRANSACTION, [
423423
createChildTx.hash,
@@ -433,7 +433,7 @@ describe('@debug API Acceptance Tests', function () {
433433
expect(result).to.have.property('calls');
434434
});
435435

436-
it('should trace a transaction using CallTracer with onlyTopCall=true', async function () {
436+
it('@release should trace a transaction using CallTracer with onlyTopCall=true', async function () {
437437
// Call debug_traceTransaction with CallTracer (default config)
438438
const result = await relay.call(DEBUG_TRACE_TRANSACTION, [
439439
createChildTx.hash,
@@ -452,7 +452,7 @@ describe('@debug API Acceptance Tests', function () {
452452
});
453453

454454
describe('PrestateTracer', () => {
455-
it('should trace a transaction using PrestateTracer', async function () {
455+
it('@release should trace a transaction using PrestateTracer', async function () {
456456
const result = await relay.call(DEBUG_TRACE_TRANSACTION, [createChildTx.hash, TRACER_CONFIGS.PRESTATE_TRACER]);
457457

458458
expect(result).to.be.an('object');
@@ -469,7 +469,7 @@ describe('@debug API Acceptance Tests', function () {
469469
}
470470
});
471471

472-
it('should trace a transaction using PrestateTracer with onlyTopCall=true', async function () {
472+
it('@release should trace a transaction using PrestateTracer with onlyTopCall=true', async function () {
473473
const result = await relay.call(DEBUG_TRACE_TRANSACTION, [
474474
createChildTx.hash,
475475
TRACER_CONFIGS.PRESTATE_TRACER_TOP_ONLY,
@@ -489,7 +489,7 @@ describe('@debug API Acceptance Tests', function () {
489489
}
490490
});
491491

492-
it('should trace a transaction using PrestateTracer with onlyTopCall=false', async function () {
492+
it('@release should trace a transaction using PrestateTracer with onlyTopCall=false', async function () {
493493
const result = await relay.call(DEBUG_TRACE_TRANSACTION, [
494494
createChildTx.hash,
495495
TRACER_CONFIGS.PRESTATE_TRACER_TOP_ONLY_FALSE,
@@ -511,7 +511,7 @@ describe('@debug API Acceptance Tests', function () {
511511
});
512512

513513
describe('OpcodeLogger', () => {
514-
it('@release should trace a successful transaction using OpcodeLogger (default when no tracer specified)', async function () {
514+
it('should trace a successful transaction using OpcodeLogger (default when no tracer specified)', async function () {
515515
const result = await relay.call(DEBUG_TRACE_TRANSACTION, [createChildTx.hash]);
516516

517517
// Validate response structure for OpcodeLogger
@@ -528,13 +528,13 @@ describe('@debug API Acceptance Tests', function () {
528528
}
529529
});
530530

531-
it('@release should trace a successful transaction using OpcodeLogger explicitly', async function () {
531+
it('should trace a successful transaction using OpcodeLogger explicitly', async function () {
532532
const result = await relay.call(DEBUG_TRACE_TRANSACTION, [createChildTx.hash, TRACER_CONFIGS.OPCODE_LOGGER]);
533533

534534
Assertions.validateOpcodeLoggerResult(result);
535535
});
536536

537-
it('@release should trace using OpcodeLogger with custom config (enableMemory=true)', async function () {
537+
it('should trace using OpcodeLogger with custom config (enableMemory=true)', async function () {
538538
const result = await relay.call(DEBUG_TRACE_TRANSACTION, [
539539
createChildTx.hash,
540540
TRACER_CONFIGS.OPCODE_WITH_MEMORY,
@@ -550,7 +550,7 @@ describe('@debug API Acceptance Tests', function () {
550550
}
551551
});
552552

553-
it('@release should trace using OpcodeLogger with custom config (disableStack=true)', async function () {
553+
it('should trace using OpcodeLogger with custom config (disableStack=true)', async function () {
554554
const result = await relay.call(DEBUG_TRACE_TRANSACTION, [
555555
createChildTx.hash,
556556
TRACER_CONFIGS.OPCODE_WITH_STACK,
@@ -566,7 +566,7 @@ describe('@debug API Acceptance Tests', function () {
566566
}
567567
});
568568

569-
it('@release should trace using OpcodeLogger with custom config (disableStorage=true)', async function () {
569+
it('should trace using OpcodeLogger with custom config (disableStorage=true)', async function () {
570570
const result = await relay.call(DEBUG_TRACE_TRANSACTION, [
571571
createChildTx.hash,
572572
TRACER_CONFIGS.OPCODE_WITH_STORAGE,
@@ -582,7 +582,7 @@ describe('@debug API Acceptance Tests', function () {
582582
}
583583
});
584584

585-
it('@release should trace using OpcodeLogger with custom config (enableMemory=true, disableStorage=true)', async function () {
585+
it('should trace using OpcodeLogger with custom config (enableMemory=true, disableStorage=true)', async function () {
586586
const result = await relay.call(DEBUG_TRACE_TRANSACTION, [
587587
createChildTx.hash,
588588
TRACER_CONFIGS.OPCODE_WITH_MEMORY_AND_STORAGE,

packages/server/tests/acceptance/rpc_batch1.spec.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2499,6 +2499,8 @@ describe('@api-batch-1 RPC Server Acceptance Tests', function () {
24992499
const signedTx = await accounts[2].wallet.signTransaction(transaction);
25002500
const transactionHash = await relay.sendRawTransaction(signedTx);
25012501

2502+
// wait for tx receipt
2503+
await relay.pollForValidTransactionReceipt(transactionHash);
25022504
const res = await relay.call(RelayCalls.ETH_ENDPOINTS.ETH_GET_TRANSACTION_BY_HASH, [transactionHash]);
25032505

25042506
expect(res.to).to.be.null;

0 commit comments

Comments
 (0)