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

Tests/LibWeb: Finish async test when an error is caught #3270

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rmg-x
Copy link
Contributor

@rmg-x rmg-x commented Jan 16, 2025

This catches errors that occur within async tests so that we fail faster
rather than timing out due to done() not being called.

We use Promise.resolve() because f isn't guaranteed to be an async
function.

@rmg-x rmg-x force-pushed the catch-async-errors branch 2 times, most recently from 0bd2db2 to 3a7e2d4 Compare January 16, 2025 02:17
@rmg-x rmg-x marked this pull request as ready for review January 16, 2025 02:22
This catches errors that occur within async tests so that we fail faster
rather than timing out due to `done()` not being called.

We use `Promise.resolve()` because `f` isn't guaranteed to be an async
function.
@rmg-x rmg-x force-pushed the catch-async-errors branch from 3a7e2d4 to b2c4b15 Compare January 16, 2025 02:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant