-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Infinite runtime with afterEach and retries enabled #18502
Comments
I have the same problem with Cypress 8.6.0 and 9.1.1, since I enabled You can find public run logs on https://github.com/openwhyd/openwhyd/runs/4493699111?check_suite_focus=true Below, you'll see (based on timestamps) that tests should have timed out! The project is open source, so you'll be able to inspect the tests, configuration and plugins used with Cypress. |
This issue is currently blocking us from utilizing |
Agreed that this seems like an issue. Closing this as duplicate of #21619 since that has more information in the thread. |
Current behavior
My ticket on cypress-cucumber-preprocessor
Semi-reproducible behavior: With retries enabled and anything in afterEach on a test, if that test fails, then the test will run infinitely on the retry attempt whether the second attempt fails or succeeds.
The behavior on my project: I've got timeouts set to 60 seconds and if I have a bad network request hanging longer than that, then it will produce this infinite run on the retry. I'm only able to reproduce it consistently on a handful of websites with
"pageLoadTimeout": 1000
. The behavior is the same though.Desired behavior
I am trying to use
cypress-cucumber-preprocessor
which runs with logic in afterEach. I currently can't put these cucumber tests into CI because of the risk of running jobs infinitely. Desired behavior is that the tests fail or succeed on retry attempts and the test concludes, which is what happens if I remove the afterEach block from the test code below.Any suggestions for workarounds?
Test code to reproduce
Infinite.js
cypress.json
Cypress Version
8.6.0
The text was updated successfully, but these errors were encountered: