Skip to content

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
@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

3 participants