Skip to content

ADFA-6795 | Let chat test runs finish before Main is reset - #152

Open
Daniel-ADFA wants to merge 1 commit into
mainfrom
fix/ADFA-6795-prompt-edit-test-teardown
Open

Daniel-ADFA wants to merge 1 commit into
mainfrom
fix/ADFA-6795-prompt-edit-test-teardown

Conversation

@Daniel-ADFA

@Daniel-ADFA Daniel-ADFA commented Oct 29, 2026 •

Copy link
Copy Markdown
Collaborator

ADFA-6795

The chat tests that start runs now clear each ViewModel and wait for its coroutines to end before Dispatchers.resetMain(). A stopped run's cleanup could switch to Main while tearDown reset it, which kotlinx-coroutines-test reports as "Dispatchers.Main is used concurrently with setting it". Test code only.

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.

2 participants