-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
expectAsyncConsoleError
not throwing error
#28438
Comments
@zhouyx The source of this bug is #20091, but the root cause lies in mochajs/mocha#1635. Here's my understanding of what is going on:
The only option I can think of is to go back to |
Thank you @rsimha for the detailed explanation. Sign... Can we avoid verifying the console error in |
Totally agree!
The original goal of making In any case, I have no objections to your suggestion if it improves the correctness of the test framework. So if you have the bandwidth, go for it! Related: #15609 |
Yes, all the existing usage will need to be converted. Some of them may silently fail today, will also need to fix that after the conversion. |
I also ran into this issue today. Tracked it down to a bug in |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions. |
I tried to use the
expectAsyncConsoleError()
method, but it's not failing a unit test as I expected. Am I missing anything?Here's my fake test (#28439 is the draft PR)
The test passed. Got
When I tried to debug it, I noticed the test was run twice and failed the second time.
The text was updated successfully, but these errors were encountered: