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

Move the call to scene.render in tests into the UI thread #910

Merged
merged 2 commits into from Nov 20, 2023

Conversation

m-sasha
Copy link

@m-sasha m-sasha commented Nov 20, 2023

To avoid race conditions with GlobalSnapshotManager and effects dispatcher, move the call to scene.render in tests into the UI thread.

Testing

Test: Added a unit test.

Issues Fixed

Fixes: https://youtrack.jetbrains.com/issue/COMPOSE-606

… race conditions with GlobalSnapshotManager and effects dispatcher.
@m-sasha m-sasha requested a review from igordmn November 20, 2023 14:09
@m-sasha m-sasha merged commit 34886f4 into jb-main Nov 20, 2023
2 of 4 checks passed
@m-sasha m-sasha deleted the m-sasha/fix-test-render-race-condition branch November 20, 2023 15:14
igordmn pushed a commit that referenced this pull request Nov 20, 2023
To avoid race conditions with GlobalSnapshotManager and effects
dispatcher, move the call to scene.render in tests into the UI thread.
mazunin-v-jb pushed a commit that referenced this pull request Dec 7, 2023
To avoid race conditions with GlobalSnapshotManager and effects
dispatcher, move the call to scene.render in tests into the UI thread.
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