File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
main/java/com/hoc/flowmvi/data
test/java/com/hoc/flowmvi/data Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ internal class UserRepositoryImpl(
7676 .map(responseToDomainThrows)
7777 }.asFlow()
7878 .retryWithExponentialBackoff(
79- maxAttempt = 3 ,
79+ maxAttempt = 2 ,
8080 initialDelay = 500 .milliseconds,
8181 factor = 2.0 ,
8282 ) { it is IOException }
Original file line number Diff line number Diff line change @@ -165,7 +165,7 @@ class UserRepositoryImplTest {
165165
166166 assertTrue(result.isLeft())
167167 assertEquals(UserError .NetworkError , result.leftOrThrow)
168- coVerify(exactly = 3 ) { userApiService.getUsers() } // retry 3 times
168+ coVerify(exactly = 3 ) { userApiService.getUsers() } // retry 2 times
169169 verify(exactly = 1 ) { errorMapper(ofType<IOException >()) }
170170 }
171171
@@ -315,7 +315,7 @@ class UserRepositoryImplTest {
315315 assertNull(result.orNull())
316316 assertEquals(UserError .NetworkError , result.leftOrThrow)
317317
318- coVerify(exactly = 3 ) { userApiService.getUsers() } // retry 3 times.
318+ coVerify(exactly = 3 ) { userApiService.getUsers() } // retry 2 times.
319319 verify(exactly = 1 ) { errorMapper(ofType<IOException >()) }
320320 }
321321
You can’t perform that action at this time.
0 commit comments