-
Notifications
You must be signed in to change notification settings - Fork 161
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
Error: EBADF: Closing file descriptor on garbage collection failed #363
Error: EBADF: Closing file descriptor on garbage collection failed #363
Comments
Experiencing the same issue on amplify and locally:
|
I'll need an example or instructions to reproduce the issue. Also please indicate the version of Node. |
We're also seeing the same issue with Node v16.7.0 |
When I can confirm this issue is not present when simply using mocha by itself but it does exist when using Cypress. I do not know enough about the inner workings of Cypress to determine the root problem. |
@adamgruber, I have created a reproducible example in https://github.com/tit/mochawesome-issue-363
Versions
|
Fix has been released in mochawesome v7.0.1 |
Describe the bug
When using the "Spec to STDOUT, produce a combined Mochawesome JSON file" config from the Cypress docs, we are seeing the test runs fail after an arbitrary number of tests (we have 30 tests in 7 files in total).
Code Reproduce
We're invoking our test runs with:
docker-compose exec cypress bash -c "yarn && cypress run --reporter mochawesome --reporter-options reportDir="cypress/results",overwrite=false,html=false,json=true "
I haven't had time to try to recreate this in a toy example yet. Will update here if I do.
Expected behavior
All tests should run until the end, and should emit one log file per file
Screenshots
N/A
Environment (please complete the following information):
Additional context
We recently upgraded from
"mochawesome": "6.2.2"
to"mochawesome": "^7.0.0"
and did not have this problem before.From playing around with it, the problem seems to be caused by
overwrite=false
. I've tried replacing withtimestamp=true
and everything worked as expected.The text was updated successfully, but these errors were encountered: