-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
🐛 Bug: Parallel mode crashes if test exception contains circular references #4552
Closed
4 tasks done
medikoo opened this issue
Jan 13, 2021
· 4 comments
· Fixed by synapsecns/synapse-contracts#95 or #5032
Closed
4 tasks done
🐛 Bug: Parallel mode crashes if test exception contains circular references #4552
medikoo opened this issue
Jan 13, 2021
· 4 comments
· Fixed by synapsecns/synapse-contracts#95 or #5032
Labels
area: parallel mode
Regarding parallel mode
status: accepting prs
Mocha can use your help with this one!
type: bug
a defect, confirmed by a maintainer
Comments
outsideris
added
type: bug
a defect, confirmed by a maintainer
area: parallel mode
Regarding parallel mode
and removed
unconfirmed-bug
labels
Jan 19, 2021
3 tasks
sam-super
added a commit
to sam-super/mocha
that referenced
this issue
Nov 21, 2023
Breaks circular references in before objects are serialized to prevent cryptic error in parallel mode.
This PR hopefully help with the second case (which is something we were seeing when developing with nestjs): |
JoshuaKGoldberg
changed the title
Parallel mode crashes if test exception contains circular references
🐛 Bug: Parallel mode crashes if test exception contains circular references
Dec 28, 2023
Heh, on my machine now it just ... hangs indefinitely. Fun. |
JoshuaKGoldberg
added
the
status: accepting prs
Mocha can use your help with this one!
label
Feb 6, 2024
Similar yet not similar to #4910 |
Published in |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
area: parallel mode
Regarding parallel mode
status: accepting prs
Mocha can use your help with this one!
type: bug
a defect, confirmed by a maintainer
Prerequisites
faq
labelnode node_modules/.bin/mocha --version
(Local) andmocha --version
(Global). We recommend that you not install Mocha globally.Description
Parallel mode crashes or hangs if test exception contains circular references
Steps to Reproduce
1. Hangs if error has self reference:
Test file
test.js
Running following will simply hang:
2. Crashes if error has circular references passed within array properties
Test file
test.js
Running following
will result with an error as:
Expected behavior:
Originally thrown exception should surface in report
Versions
mocha --version
andnode node_modules/.bin/mocha --version
: 8.2.1node --version
: 15.5.1The text was updated successfully, but these errors were encountered: