Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test(multichain-testing): unique wallet per test #11014

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

0xpatrickdev
Copy link
Member

@0xpatrickdev 0xpatrickdev commented Feb 18, 2025

refs: #9934

Description

account-balances-queries.test.ts appears in many of the recent multichain-testing flakes. This test file was using 3 wallets for 6 test runs. This PR refactors to use 1 wallet per test.

Security Considerations

None

Scaling Considerations

None

Documentation Considerations

None

Testing Considerations

Towards the goal of quelling CI flakes

Upgrade Considerations

None

@0xpatrickdev 0xpatrickdev requested a review from a team as a code owner February 18, 2025 17:53
Copy link

cloudflare-workers-and-pages bot commented Feb 18, 2025

Deploying agoric-sdk with  Cloudflare Pages  Cloudflare Pages

Latest commit: b6b1bb9
Status: ✅  Deploy successful!
Preview URL: https://aa883ccc.agoric-sdk.pages.dev
Branch Preview URL: https://pc-account-balances-queries.agoric-sdk.pages.dev

View logs

Comment on lines +47 to 48
const agoricAddr = wallets[walletName];
const wdUser1 = await provisionSmartWallet(agoricAddr, {
Copy link
Member Author

@0xpatrickdev 0xpatrickdev Feb 18, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We might consider moving provisionSmartWallet to test.before() and reusing it across runs to speed up the test. For now, this is expedient.

- this test was using 3 wallets for 6 test runs. refactor to use 1 wallet per test
- refs: #9934
@0xpatrickdev 0xpatrickdev force-pushed the pc/account-balances-queries-flake branch from fd4febf to b6b1bb9 Compare February 18, 2025 21:24
@0xpatrickdev 0xpatrickdev added the force:integration Force integration tests to run on PR label Feb 18, 2025
@0xpatrickdev 0xpatrickdev marked this pull request as draft February 18, 2025 21:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
force:integration Force integration tests to run on PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant