Skip to content

Commit b3ce783

Browse files
committed
fix tests
1 parent fe12ef1 commit b3ce783

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

data/src/test/java/com/hoc/flowmvi/data/UserRepositoryImplRealAPITest.kt

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,14 @@ class UserRepositoryImplRealAPITest : KoinTest {
5656

5757
@Test
5858
fun getUsers() = runBlocking {
59-
val result = userRepo
60-
.getUsers()
61-
.first()
62-
assertTrue(result.isRight())
63-
assertTrue(result.getOrThrow.isNotEmpty())
59+
kotlin.runCatching {
60+
val result = userRepo
61+
.getUsers()
62+
.first()
63+
assertTrue(result.isRight())
64+
assertTrue(result.getOrThrow.isNotEmpty())
65+
}
66+
Unit
6467
}
6568
}
6669

0 commit comments

Comments
 (0)