Skip to content
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

Async admonitions. #12495 #13305

Closed
wants to merge 1 commit into from
Closed

Conversation

paulreece
Copy link
Contributor

Summary

Test plan

@@ -115,7 +115,11 @@ If `done()` is never called, the test will fail (with timeout error), which is w

If the `expect` statement fails, it throws an error and `done()` is not called. If we want to see in the test log why it failed, we have to wrap `expect` in a `try` block and pass the error in the `catch` block to `done`. Otherwise, we end up with an opaque timeout error that doesn't show what value was received by `expect(data)`.

_Note: `done()` should not be mixed with Promises as this tends to lead to memory leaks in your tests._
:::note
Copy link
Contributor

@mrazauskas mrazauskas Sep 22, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See #13284. Edit: fine to close this PR which I use as an example, but yours must be identical.

@paulreece
Copy link
Contributor Author

Since I started this in June I unintentionally duplicated your PR. Should I close this one too? @mrazauskas

@mrazauskas
Copy link
Contributor

#13284 got merged yesterday. All is fixed in the page. So this PR can be closed now.

Thanks for sending it in anyways.

@paulreece paulreece closed this Sep 24, 2022
@github-actions
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 25, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants