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

Make HTML TestUtils wait functions cancellable #3320

Merged

Conversation

alexzhirkevich
Copy link
Contributor

Replace suspendCoroutine with suspendCancellableCoroutine to allow timeout cancellation of waitForRecompositionComplete and waitForChanges

Fixes #3317


Test: waitForChanges_cancels_with_timeout, waitForRecompositionComplete_cancels_with_timeout

@alexzhirkevich
Copy link
Contributor Author

@eymar @igordmn

Copy link
Member

@eymar eymar left a comment

Choose a reason for hiding this comment

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

LGTM. The only thing is that imports need to be added to make it build and run

@alexzhirkevich alexzhirkevich requested a review from eymar July 6, 2023 14:40
@eymar eymar merged commit f221db2 into JetBrains:master Jul 6, 2023
@alexzhirkevich alexzhirkevich deleted the html-test-utils-cancellable-wait branch July 6, 2023 15:18
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.

Html library testutils waitForChanges does not timeout
2 participants