Skip to content

Commit 87e7c64

Browse files
committed
Fix test
1 parent f280b89 commit 87e7c64

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

features/login/impl/src/test/kotlin/io/element/android/features/login/impl/DefaultLoginEntryPointTest.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import io.element.android.features.login.impl.accountprovider.AccountProviderDat
1717
import io.element.android.libraries.oidc.test.customtab.FakeOidcActionFlow
1818
import io.element.android.tests.testutils.lambda.lambdaError
1919
import io.element.android.tests.testutils.node.TestParentNode
20+
import kotlinx.coroutines.test.runTest
2021
import org.junit.Rule
2122
import org.junit.Test
2223

@@ -28,14 +29,15 @@ class DefaultLoginEntryPointTest {
2829
val mainDispatcherRule = MainDispatcherRule()
2930

3031
@Test
31-
fun `test node builder`() {
32+
fun `test node builder`() = runTest {
3233
val entryPoint = DefaultLoginEntryPoint()
3334
val parentNode = TestParentNode.create { buildContext, plugins ->
3435
LoginFlowNode(
3536
buildContext = buildContext,
3637
plugins = plugins,
3738
accountProviderDataSource = AccountProviderDataSource(FakeEnterpriseService()),
3839
oidcActionFlow = FakeOidcActionFlow(),
40+
appCoroutineScope = backgroundScope,
3941
)
4042
}
4143
val callback = object : LoginEntryPoint.Callback {

0 commit comments

Comments
 (0)