File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
app/src/test/java/to/bitkit/repositories Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -211,7 +211,7 @@ class WalletRepoTest : BaseUnitTest() {
211211 on { totalLightningBalanceSats } doReturn 500uL
212212 on { totalOnchainBalanceSats } doReturn 1000uL
213213 }
214- whenever( lightningRepo.getBalances()) .thenReturn(balanceDetails)
214+ wheneverBlocking { lightningRepo.getBalancesAsync()} .thenReturn(Result .success( balanceDetails) )
215215
216216 val channels = listOf (
217217 mock<ChannelDetails > {
@@ -236,7 +236,7 @@ class WalletRepoTest : BaseUnitTest() {
236236 @Test
237237 fun `syncBalances should update wallet state with balance details` () = test {
238238 val balanceDetails = mock<BalanceDetails >()
239- whenever( lightningRepo.getBalances()) .thenReturn(balanceDetails)
239+ wheneverBlocking { lightningRepo.getBalancesAsync()} .thenReturn(Result .success( balanceDetails) )
240240
241241 sut.syncBalances()
242242
You can’t perform that action at this time.
0 commit comments