From 405a23022299558837bf13d937304c62b8fd57cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9A=D0=B8=D1=80=D0=B8=D0=BB=D0=BB?= Date: Tue, 27 Aug 2024 15:23:43 +0400 Subject: [PATCH] Fix another test --- .../dshackle/upstream/ethereum/GenericWsHeadTest.kt | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/test/kotlin/io/emeraldpay/dshackle/upstream/ethereum/GenericWsHeadTest.kt b/src/test/kotlin/io/emeraldpay/dshackle/upstream/ethereum/GenericWsHeadTest.kt index b405bad2a..b81724c48 100644 --- a/src/test/kotlin/io/emeraldpay/dshackle/upstream/ethereum/GenericWsHeadTest.kt +++ b/src/test/kotlin/io/emeraldpay/dshackle/upstream/ethereum/GenericWsHeadTest.kt @@ -437,15 +437,9 @@ class GenericWsHeadTest { Duration.ofSeconds(60), ) - StepVerifier.create(wsHead.getFlux()) + StepVerifier.create(wsHead.headLiveness()) .then { wsHead.start() } - .expectNext(BlockContainer.from(block1)) - .then { - StepVerifier.create(wsHead.headLiveness()) - .expectNext(HeadLivenessState.FATAL_ERROR) - .thenCancel() - .verify(Duration.ofSeconds(2)) - } + .expectNext(HeadLivenessState.FATAL_ERROR) .thenCancel() .verify(Duration.ofSeconds(3))