test: stabilize flaky integration teardown#1016
Open
AshishAnshoo wants to merge 1 commit into
Open
Conversation
Fix the intermittent CI 'Test' failure (EnvironmentTeardownError: Closing rpc while onUserConsoleLog was pending, blamed on messages.test.tsx). - onramp useOnrampForm.spec: add the missing useNetworkStore export to the wallet-core-blockchain mock. Analytics reads useNetworkStore.getState() on every trackEvent; without it each call logged 'No useNetworkStore export on the mock' (9x), and that pending console forwarding races worker teardown. - integration setup afterEach: drain the macrotask queue so late background async (polling logger.warn) forwards its console within the test window, not at worker close. Same root cause the waitForConfirmation mock addresses. Test-only. No app/runtime code touched. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
AshishAnshoo
force-pushed
the
test/AshishAnshoo/fix-flaky-integration-teardown
branch
from
July 23, 2026 17:12
a9e5bc3 to
2bb6d7a
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fix the intermittent CI 'Test' failure (EnvironmentTeardownError: Closing rpc while onUserConsoleLog was pending, blamed on messages.test.tsx).
Test-only. No app/runtime code touched.
Pull Request Template
Description
Related Issues
Checklist
Additional Notes