@@ -781,7 +781,7 @@ class RpcApiTests extends AnyFlatSpec with Matchers with Logger {
781
781
setupContractResponse1.getError shouldEqual null
782
782
783
783
// Mine 2 Contract creation transactions
784
- val minedBlock = service.blockFlowable(false ).blockingFirst ()
784
+ val _ = service.blockFlowable(false ).take( 2 ).blockingLast ()
785
785
786
786
// Get receipt for both contract creation transactions
787
787
val receiptResponse = service.ethGetTransactionReceipt(setupContractResponse.getTransactionHash).send()
@@ -948,13 +948,13 @@ class RpcApiTests extends AnyFlatSpec with Matchers with Logger {
948
948
// Uninstall block filter
949
949
val blockFilter = service.ethNewBlockFilter().send()
950
950
val blockFilterid = blockFilter.getFilterId
951
- val minedBlock = service.blockFlowable(false ).blockingFirst ()
951
+ val minedBlock = service.blockFlowable(false ).take( 2 ).blockingLast ()
952
952
val blockchanges = service.ethGetFilterChanges(blockFilterid).send()
953
953
val addedBlocks = blockchanges.getLogs.asScala.toList.map(log => log.asInstanceOf [Hash ].get)
954
954
addedBlocks should contain(minedBlock.getBlock.getHash)
955
955
val uninstalTxFilterResponse3 = service.ethUninstallFilter(blockFilterid).send()
956
956
uninstalTxFilterResponse.isUninstalled shouldEqual true
957
- val minedBlock1 = service.blockFlowable(false ).blockingFirst ()
957
+ val minedBlock1 = service.blockFlowable(false ).take( 2 ).blockingLast ()
958
958
val blockchanges1 = service.ethGetFilterChanges(blockFilterid).send()
959
959
blockchanges1.getLogs.asScala.toList.size shouldEqual 0
960
960
@@ -1087,7 +1087,7 @@ class RpcApiTests extends AnyFlatSpec with Matchers with Logger {
1087
1087
val txCountResponseWithPendingBlock = service.ethGetTransactionCount(firstAccount.address, pendingBlock).send()
1088
1088
val txCount = txCountResponseWithPendingBlock.getTransactionCount
1089
1089
1090
- txCount.asBigInt shouldEqual currentCount.asBigInt + 1
1090
+ txCount.asBigInt shouldEqual currentCount.asBigInt
1091
1091
}
1092
1092
1093
1093
it should " personal_ListAccounts and eth_ListAccounts " taggedAs (PrivNet ) in new ScenarioSetup {
0 commit comments