This commit is contained in:
Benoit Marty 2025-11-07 16:52:33 +01:00 committed by Benoit Marty
parent f280b8962b
commit 87e7c64d34

View file

@ -17,6 +17,7 @@ import io.element.android.features.login.impl.accountprovider.AccountProviderDat
import io.element.android.libraries.oidc.test.customtab.FakeOidcActionFlow
import io.element.android.tests.testutils.lambda.lambdaError
import io.element.android.tests.testutils.node.TestParentNode
import kotlinx.coroutines.test.runTest
import org.junit.Rule
import org.junit.Test
@ -28,7 +29,7 @@ class DefaultLoginEntryPointTest {
val mainDispatcherRule = MainDispatcherRule()
@Test
fun `test node builder`() {
fun `test node builder`() = runTest {
val entryPoint = DefaultLoginEntryPoint()
val parentNode = TestParentNode.create { buildContext, plugins ->
LoginFlowNode(
@ -36,6 +37,7 @@ class DefaultLoginEntryPointTest {
plugins = plugins,
accountProviderDataSource = AccountProviderDataSource(FakeEnterpriseService()),
oidcActionFlow = FakeOidcActionFlow(),
appCoroutineScope = backgroundScope,
)
}
val callback = object : LoginEntryPoint.Callback {