Skip to content

test(e2e): wait for L1 txs to be mined in token bridge tutorial test#24065

Open
spalladino wants to merge 1 commit into
merge-train/spartan-v5from
spl/deflake-token-bridge-tutorial-test
Open

test(e2e): wait for L1 txs to be mined in token bridge tutorial test#24065
spalladino wants to merge 1 commit into
merge-train/spartan-v5from
spl/deflake-token-bridge-tutorial-test

Conversation

@spalladino

Copy link
Copy Markdown
Contributor

Fixes a race in e2e_token_bridge_tutorial_test where L1 setup transactions were submitted but not awaited before dependent bridge calls.

  • Waits for the TestERC20.addMinter transaction receipt before minting through the handler.
  • Waits for the TokenPortal.initialize transaction receipt before simulating depositToAztecPublic.
  • Prevents intermittent SafeERC20FailedOperation(address token) (0x0) when the portal deposit simulation runs before underlying is initialized.

See http://ci.aztec-labs.com/e100f59864b9c18c for sample failed run.

Fixes a race in `e2e_token_bridge_tutorial_test` where L1 setup transactions were submitted but not awaited before dependent bridge calls.

- Waits for the `TestERC20.addMinter` transaction receipt before minting through the handler.
- Waits for the `TokenPortal.initialize` transaction receipt before simulating `depositToAztecPublic`.
- Prevents intermittent `SafeERC20FailedOperation(address token) (0x0)` when the portal deposit simulation runs before `underlying` is initialized.

See http://ci.aztec-labs.com/e100f59864b9c18c for sample failed run.
@AztecBot

Copy link
Copy Markdown
Collaborator

Flakey Tests

🤖 says: This CI run detected 2 tests that failed, but were tolerated due to a .test_patterns.yml entry.

\033FLAKED\033 (8;;http://ci.aztec-labs.com/153ef8625836488f�153ef8625836488f8;;�): yarn-project/kv-store/scripts/run_test.sh src/bench/sqlite-opfs-encrypted/map_bench.test.ts (2s) (code: 0)
\033FLAKED\033 (8;;http://ci.aztec-labs.com/d3f19b653e37935b�d3f19b653e37935b8;;�): yarn-project/kv-store/scripts/run_test.sh src/sqlite-opfs/internal/ordered-binary-browser.test.ts (2s) (code: 0)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants