test(error): Emit through the error flow in the dialog test

The fake source was asked to emit directly; SingleEventFlow's emitters live
on the errorEvents flow itself, the way the ViewModels use them.
This commit is contained in:
darken
2026-08-03 20:28:01 +02:00
committed by Matthias Urhahn
parent 6fcc2c4348
commit 2dbe86ad5e
@@ -50,7 +50,7 @@ class ComposeErrorDialogTest : BaseTest() {
}
}
// Buffered channel: the event survives until the handler's collector attaches.
source.emitBlocking(error)
source.errorEvents.tryEmit(error)
composeRule.waitForIdle()
}