From 2dbe86ad5e36bdb0a980e1438825f4f863c575ee Mon Sep 17 00:00:00 2001 From: darken Date: Mon, 3 Aug 2026 19:54:15 +0200 Subject: [PATCH] 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. --- .../java/eu/darken/capod/common/error/ComposeErrorDialogTest.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/testGplay/java/eu/darken/capod/common/error/ComposeErrorDialogTest.kt b/app/src/testGplay/java/eu/darken/capod/common/error/ComposeErrorDialogTest.kt index 01cc58d2..75e4e23a 100644 --- a/app/src/testGplay/java/eu/darken/capod/common/error/ComposeErrorDialogTest.kt +++ b/app/src/testGplay/java/eu/darken/capod/common/error/ComposeErrorDialogTest.kt @@ -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() }