File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
app/src/test/java/to/bitkit/ui/sheets Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import app.cash.turbine.test
44import com.synonym.bitkitcore.Activity
55import com.synonym.bitkitcore.OnchainActivity
66import com.synonym.bitkitcore.PaymentType
7+ import kotlinx.coroutines.Job
78import kotlinx.coroutines.test.runTest
89import org.junit.Before
910import org.junit.Test
@@ -62,6 +63,7 @@ class BoostTransactionViewModelTest : BaseUnitTest() {
6263 activityRepo = activityRepo
6364 )
6465 wheneverBlocking { lightningRepo.listSpendableOutputs() }.thenReturn(Result .success(emptyList()))
66+ whenever(lightningRepo.syncAsync()).thenReturn(Job ())
6567 }
6668
6769 @Test
@@ -224,6 +226,7 @@ class BoostTransactionViewModelTest : BaseUnitTest() {
224226 }
225227
226228 verify(lightningRepo).accelerateByCpfp(any(), any(), any())
229+ verify(lightningRepo).syncAsync()
227230 verify(activityRepo).updateActivity(any(), any(), any())
228231 verify(activityRepo, never()).deleteActivity(any())
229232 }
You can’t perform that action at this time.
0 commit comments