From feb2bb89f70b764aa2d9a8d05d40d62712e8ae35 Mon Sep 17 00:00:00 2001 From: Igor Artamonov Date: Sat, 2 Apr 2022 16:47:58 -0400 Subject: [PATCH] problem: many timeouts on CI --- .../upstream/ethereum/WsConnectionRealSpec.groovy | 4 ++-- .../dshackle/upstream/ethereum/WsConnectionSpec.groovy | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/test/groovy/io/emeraldpay/dshackle/upstream/ethereum/WsConnectionRealSpec.groovy b/src/test/groovy/io/emeraldpay/dshackle/upstream/ethereum/WsConnectionRealSpec.groovy index 0a64c3af..a84e6e00 100644 --- a/src/test/groovy/io/emeraldpay/dshackle/upstream/ethereum/WsConnectionRealSpec.groovy +++ b/src/test/groovy/io/emeraldpay/dshackle/upstream/ethereum/WsConnectionRealSpec.groovy @@ -63,7 +63,7 @@ class WsConnectionRealSpec extends Specification { it.hasResult() && it.resultAsProcessedString == "baz" } .expectComplete() - .verify(Duration.ofSeconds(3)) + .verify(Duration.ofSeconds(5)) when: Thread.sleep(SLEEP) @@ -159,6 +159,6 @@ class WsConnectionRealSpec extends Specification { it.hasResult() && it.resultAsProcessedString == "baz" } .expectComplete() - .verify(Duration.ofSeconds(3)) + .verify(Duration.ofSeconds(5)) } } diff --git a/src/test/groovy/io/emeraldpay/dshackle/upstream/ethereum/WsConnectionSpec.groovy b/src/test/groovy/io/emeraldpay/dshackle/upstream/ethereum/WsConnectionSpec.groovy index 16606a94..3e8b1569 100644 --- a/src/test/groovy/io/emeraldpay/dshackle/upstream/ethereum/WsConnectionSpec.groovy +++ b/src/test/groovy/io/emeraldpay/dshackle/upstream/ethereum/WsConnectionSpec.groovy @@ -66,7 +66,7 @@ class WsConnectionSpec extends Specification { .then { ws.onNewHeads(headBlock).subscribe() } .expectNext(BlockContainer.from(block)) .thenCancel() - .verify(Duration.ofSeconds(1)) + .verify(Duration.ofSeconds(5)) } def "Makes a RPC call"() { @@ -91,7 +91,7 @@ class WsConnectionSpec extends Specification { it.id.asNumber() == 15L && Global.objectMapper.readValue(it.result, TransactionJson) == tx } .expectComplete() - .verify(Duration.ofSeconds(1)) + .verify(Duration.ofSeconds(5)) } def "Makes a RPC call - return null"() { @@ -114,7 +114,7 @@ class WsConnectionSpec extends Specification { it.resultAsRawString == 'null' } .expectComplete() - .verify(Duration.ofSeconds(1)) + .verify(Duration.ofSeconds(5)) } def "Makes a RPC call - return error"() { @@ -139,6 +139,6 @@ class WsConnectionSpec extends Specification { it.error.code == RpcResponseError.CODE_METHOD_NOT_EXIST && it.error.message == "test" } .expectComplete() - .verify(Duration.ofSeconds(1)) + .verify(Duration.ofSeconds(5)) } }