BraveRewardsBrowserTest.* tests frequently time out
See original GitHub issueBrave Rewards tests are frequently timing out which causes each PR to take longer and also takes longer for people checking tests locally on their tasks.
As an example:
BraveRewardsBrowserTest.ProcessPendingContributions (TIMED OUT)
But there are others too (8) that frequently timeout.
cc @NejcZdovc
Here are some ideas for cleaning up tests:
- Add a method to enable Rewards without using the Rewards Page UI, and switch tests to it where possible. (#7002)
- Replace use of sleep/polling with a
MutationObserver
that will watch for the page to be modified. (https://github.com/brave/brave-browser/issues/7060) - Switch tests to use
TipViaCode
where possible. (https://github.com/brave/brave-browser/issues/7184) - Add a method to claim an initial grant without going through the Rewards Page or Rewards Panel UI, and switch tests to using it where possible. (https://github.com/brave/brave-browser/issues/9129)
- Add a method to open the Site Banner without going through the Rewards Panel, and switch tests to using it where possible.
- Move utility functions into a separate file.
- Split Rewards Service tests into multiple files based on test category. (https://github.com/brave/brave-browser/issues/9204)
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (7 by maintainers)
Top Results From Across the Web
Exceeded timeout of 5000 ms for a test · Issue #11607 - GitHub
I have started getting this issue: thrown: "Exceeded timeout of 5000 ms for a test. Use jest.setTimeout(newTimeout) to increase the timeout ...
Read more >Debug BrowserStack Automate idle timeout error
If a test session does not receive the next test command after running the earlier command, it waits for a maximum of 90...
Read more >Cypress and Flaky Tests: How to Handle Timeout Errors
In general, a “timeout” can occur when a program does not receive a response within a specified amount of time, resulting in an...
Read more >Solved: Automated Test Framework(ATF) Time out Error occur...
Solved: Hi, while running the Test scripts in ATF, it eventually lands with the timeout error referred below very frequently.
Read more >Run Timeouts - Currents Documentation
Understand cypress tests timeouts and how to avoid them. ... The most common reason is prematurely terminating cypress / currents process before letting...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Just an update, still seeing the following failure from time to time:
closing as nothing new is planned for this and browser tests are stable now