From 1475655f20c60dba22484ebfa094eddce1348688 Mon Sep 17 00:00:00 2001 From: Maxime NATUREL Date: Mon, 3 Oct 2022 17:49:17 +0200 Subject: [PATCH] Fix unit tests failing by setting testDispatcher --- .../session/clientinfo/UpdateMatrixClientInfoUseCaseTest.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vector/src/test/java/im/vector/app/core/session/clientinfo/UpdateMatrixClientInfoUseCaseTest.kt b/vector/src/test/java/im/vector/app/core/session/clientinfo/UpdateMatrixClientInfoUseCaseTest.kt index 79e6ea8639..b549c809b5 100644 --- a/vector/src/test/java/im/vector/app/core/session/clientinfo/UpdateMatrixClientInfoUseCaseTest.kt +++ b/vector/src/test/java/im/vector/app/core/session/clientinfo/UpdateMatrixClientInfoUseCaseTest.kt @@ -64,7 +64,7 @@ class UpdateMatrixClientInfoUseCaseTest { } @Test - fun `given current client info is different than the stored one when trying to update then new client info is set`() = runTest { + fun `given current client info is different than the stored one when trying to update then new client info is set`() = runTest(testDispatcher) { // Given givenCurrentAppName(AN_APP_NAME_1) givenCurrentVersionName(A_VERSION_NAME_1) @@ -83,7 +83,7 @@ class UpdateMatrixClientInfoUseCaseTest { } @Test - fun `given current client info is equal to the stored one when trying to update then nothing is done`() = runTest { + fun `given current client info is equal to the stored one when trying to update then nothing is done`() = runTest(testDispatcher) { // Given givenCurrentAppName(AN_APP_NAME_1) givenCurrentVersionName(A_VERSION_NAME_1) @@ -97,7 +97,7 @@ class UpdateMatrixClientInfoUseCaseTest { } @Test - fun `given no session id for current session when trying to update then nothing is done`() = runTest { + fun `given no session id for current session when trying to update then nothing is done`() = runTest(testDispatcher) { // Given givenCurrentAppName(AN_APP_NAME_1) givenCurrentVersionName(A_VERSION_NAME_1)