File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
base/src/test/java/io/github/sds100/keymapper/base/actions Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -10,8 +10,10 @@ import io.github.sds100.keymapper.common.models.ShellResult
1010import io.github.sds100.keymapper.common.utils.Success
1111import io.github.sds100.keymapper.data.Keys
1212import io.github.sds100.keymapper.sysbridge.manager.SystemBridgeConnectionManager
13+ import io.github.sds100.keymapper.sysbridge.manager.SystemBridgeConnectionState
1314import kotlinx.coroutines.Dispatchers
1415import kotlinx.coroutines.ExperimentalCoroutinesApi
16+ import kotlinx.coroutines.flow.MutableStateFlow
1517import kotlinx.coroutines.flow.first
1618import kotlinx.coroutines.flow.flowOf
1719import kotlinx.coroutines.test.UnconfinedTestDispatcher
@@ -68,7 +70,15 @@ class ConfigShellCommandViewModelTest {
6870
6971 mockExecuteShellCommandUseCase = mock()
7072 mockNavigationProvider = mock()
71- mockSystemBridgeConnectionManager = mock()
73+ mockSystemBridgeConnectionManager = mock {
74+ on { connectionState }.thenReturn(
75+ MutableStateFlow (
76+ SystemBridgeConnectionState .Connected (
77+ 0L ,
78+ ),
79+ ),
80+ )
81+ }
7282
7383 fakePreferenceRepository = FakePreferenceRepository ()
7484
You can’t perform that action at this time.
0 commit comments