-
-
Notifications
You must be signed in to change notification settings - Fork 729
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
retryTo leads to stale process on failure #4197
Comments
This issue is stale because it has been open for 90 days with no activity. |
The issue still persists (see test case). Unfortunately, |
hey @cjhille I reverted those fixes at https://github.com/codeceptjs/CodeceptJS/pull/4117/files#diff-3799cca2cab187279c2a50bbd0c3a7451b24e20da2bdad08d42eb95444d392baR92 but the issue still persists, so I think it's coming from somewhere else. |
@kobenguyent after investigation, we have found that the issue is not about This is enough to stale the process Scenario('Rejected promise stale the process', async ({ I }) => {
await new Promise((resolve, reject) => setTimeout(reject, 500));
}) We investigate how to solve this |
I'm sorry @kobenguyent, but we must have missed a regression with the last fix here #4110
It works fine as long as assertions are a success, but as soon as there is a failure – even outside the retryTo block – the test never terminates.
Simple test code:
EDIT: Adding an irregular await before the failing assertion
await I.waitForVisible('.nothing', 1)
will let the promise chain resolve.The text was updated successfully, but these errors were encountered: