Skip to content

Commit

Permalink
Fix tests (#193)
Browse files Browse the repository at this point in the history
  • Loading branch information
abdrasulov committed Feb 26, 2019
1 parent 5b9497d commit 54082ee
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Expand Up @@ -43,6 +43,7 @@ class KitStateProviderTest {

@Test
fun onSyncStop() {
kitStateProvider.onSyncStart()
kitStateProvider.onSyncStop()

verify(kitStateListener).onKitStateUpdate(KitState.NotSynced)
Expand Down
Expand Up @@ -55,7 +55,7 @@ class InitialSyncerApiTest {

@Test
fun fetchFromApi() {
initialSyncerApi.fetchFromApi(account, true).test()
initialSyncerApi.discoverBlockHashes(account, true).test()

verify(apiManager).getJsonArray("tx/address/1A282zR9uMz84P9vQNwCBCqfwGtKEu3K3v")
}
Expand All @@ -66,7 +66,7 @@ class InitialSyncerApiTest {

whenever(apiManager.getJsonArray(any())).thenThrow(error)

initialSyncerApi.fetchFromApi(account, true)
initialSyncerApi.discoverBlockHashes(account, true)
.test()
.assertError(error)
}
Expand All @@ -82,7 +82,7 @@ class InitialSyncerApiTest {
JsonArray() // response for second call
)

initialSyncerApi.fetchFromApi(account, true)
initialSyncerApi.discoverBlockHashes(account, true)
.test()
.assertValue {
val keys = it.first
Expand Down

0 comments on commit 54082ee

Please sign in to comment.