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

In tests, don't attempt to close the ComposeScene if it failed to create #1343

Merged
merged 1 commit into from
May 6, 2024

Conversation

m-sasha
Copy link

@m-sasha m-sasha commented May 6, 2024

When ComposeUiTest.createUi throws an exception (from withScene) it does not currently propagate to the test runner, because in the finally block we throw a NPE attempting to close the scene.

Fixes JetBrains/compose-multiplatform#4757

Testing

  • Tested by throwing an exception in createUi and verifying that the test fails with that exception.

@m-sasha m-sasha requested a review from MatkovIvan May 6, 2024 10:25
@m-sasha m-sasha merged commit b613230 into jb-main May 6, 2024
6 checks passed
@m-sasha m-sasha deleted the m-sasha/fail-correctly-on-createUi-failure branch May 6, 2024 14:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants