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
[REGRESSION]: test-results.json error section is randomly populated on green(passed) runs. #27227
Comments
@MarianS06 Yes, definitely we'd need a repro. Otherwise, it's hard to see what's going on. |
I created this repo and managed to reproduce the issue. Please run it multiple times i.e: |
This is working as intended. You are calling |
@pavelfeldman so the solution would be to remove the listeners before trying to close the page? |
The listener handler could already be running, so removing the listener won't help. There is nothing better than a silent catch in this case sadly as you don't have control over the incoming network traffic. I'll leave it open for us to consider awaiting all the handlers on page close (again). |
Folding into #23781 |
Context:
Describe the bug
We have multiple runs during the day, randomly we get the errors section in test-results.json populated with something like:
this was not detected in the previous versions, and we have some extra check for these errors, we do not want to falsely mark runs as green. It might be the case where we need to remove the listener before closing the page, but still this seems like a regression; on other runs the same test case fails at first run(with the exact error) and passes at rerun, but the "errors" sections is empty. Please let me know if you need an example repo.
The text was updated successfully, but these errors were encountered: