From 98330b877275d3e8660695566e213e3b20c6c61d Mon Sep 17 00:00:00 2001 From: Igor Artamonov Date: Wed, 13 May 2020 23:24:21 -0400 Subject: [PATCH] problem: CI tests fail --- .../io/emeraldpay/dshackle/rpc/TrackEthereumAddressSpec.groovy | 1 + .../dshackle/upstream/ethereum/EthereumReaderSpec.groovy | 1 + 2 files changed, 2 insertions(+) diff --git a/src/test/groovy/io/emeraldpay/dshackle/rpc/TrackEthereumAddressSpec.groovy b/src/test/groovy/io/emeraldpay/dshackle/rpc/TrackEthereumAddressSpec.groovy index 5343aa12..e68f7843 100644 --- a/src/test/groovy/io/emeraldpay/dshackle/rpc/TrackEthereumAddressSpec.groovy +++ b/src/test/groovy/io/emeraldpay/dshackle/rpc/TrackEthereumAddressSpec.groovy @@ -118,6 +118,7 @@ class TrackEthereumAddressSpec extends Specification { .expectNext(exp1).as("First block") .then { upstreamMock.nextBlock(BlockContainer.from(block2, TestingCommons.objectMapper())) + Thread.sleep(50) } .expectNext(exp2).as("Second block") .thenCancel() diff --git a/src/test/groovy/io/emeraldpay/dshackle/upstream/ethereum/EthereumReaderSpec.groovy b/src/test/groovy/io/emeraldpay/dshackle/upstream/ethereum/EthereumReaderSpec.groovy index 06349b14..602af14e 100644 --- a/src/test/groovy/io/emeraldpay/dshackle/upstream/ethereum/EthereumReaderSpec.groovy +++ b/src/test/groovy/io/emeraldpay/dshackle/upstream/ethereum/EthereumReaderSpec.groovy @@ -235,6 +235,7 @@ class EthereumReaderSpec extends Specification { it.totalDifficulty = BigInteger.TWO } upstream.nextBlock(BlockContainer.from(block2, TestingCommons.objectMapper())) + Thread.sleep(50) act = reader.balance().read(Address.from("0x70b91ff87a902b53dc6e2f6bda8bb9b330ccd30c")).block() then: