mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-02-16 20:10:04 +03:00
Fix unit tests failing by setting testDispatcher
This commit is contained in:
parent
5649933b03
commit
1475655f20
1 changed files with 3 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue