No need to use StandardTestDispatcher
This commit is contained in:
parent
b716482e43
commit
788d9e0631
1 changed files with 1 additions and 2 deletions
|
|
@ -25,7 +25,6 @@ import io.element.android.libraries.pushproviders.unifiedpush.registration.Endpo
|
|||
import io.element.android.libraries.pushproviders.unifiedpush.registration.RegistrationResult
|
||||
import kotlinx.coroutines.delay
|
||||
import kotlinx.coroutines.launch
|
||||
import kotlinx.coroutines.test.StandardTestDispatcher
|
||||
import kotlinx.coroutines.test.TestScope
|
||||
import kotlinx.coroutines.test.runTest
|
||||
import org.junit.Test
|
||||
|
|
@ -65,7 +64,7 @@ class DefaultRegisterUnifiedPushUseCaseTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
fun `test registration timeout`() = runTest(StandardTestDispatcher()) {
|
||||
fun `test registration timeout`() = runTest {
|
||||
val endpointRegistrationHandler = EndpointRegistrationHandler()
|
||||
val useCase = createDefaultRegisterUnifiedPushUseCase(
|
||||
endpointRegistrationHandler = endpointRegistrationHandler
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue