-
Notifications
You must be signed in to change notification settings - Fork 5k
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
fix: flaky test onboarding @no-mmi doesn't make any network requests to infura before onboarding is completed/test-failure-screenshot-1.png
timeout
#25525
Conversation
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
@seaona I think I figured this one out. The mocked I think the solution is: |
hey @HowardBraham that's a great finding!!! I confirm I've observed this behaviour occasionally, where the accounts kept growing if I wait several seconds. [EDIT] It looks like this works on ci. I've also run the test several times locally and seems to fix it! thank you. I've updated the description accordingly net-verison-missing.mp4 |
Builds ready [604ace6]
Page Load Metrics (48 ± 4 ms)
Bundle size diffs
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wow great findings ! LGTM !
Description
This test appears flaky as sometimes not all the requests are made when we finish the onboarding. Notice how, we mock 5 requests, but in the logs, only 4 appear after the onboarding. Specifically the
net_version
request doesn't happen in this case.[EDIT] It seems that the explanation for this is what @HowardBraham mentions below: since we mock the balance as non-zero, the wallet keeps querying the balance for the subsequent accounts. This could be that causes the wallet to enter in a non-finishing loop, and the
net_version
request is also never triggered (see this should happen after theeth_call
)Related issues
Fixes: #25543
Manual testing steps
Screenshots/Recordings
Pre-merge author checklist
Pre-merge reviewer checklist