problem: native calls are execute one by one, and possibly exhausting target upstream

This commit is contained in:
Igor Artamonov
2019-08-09 00:26:44 -04:00
parent 034d0fd601
commit 7f9478d538
2 changed files with 9 additions and 2 deletions

View File

@@ -93,7 +93,7 @@ class EthereumGrpcTransportSpec extends Specification {
then:
1 * otherSideUpstreams.getUpstream(Chain.ETHEREUM) >> otherSideAggr
1 * otherSideAggr.getApis(_) >> [otherSideApi].multiply(3).iterator()
1 * otherSideAggr.getApis(_) >> [otherSideApi].multiply(34).iterator()
_ * otherSideAggr.getHead() >> Stub(EthereumHead)
_ * otherSideAggr.getTargets() >> ethereumTargets
status.failed == 0