Fix another test (#558)

This commit is contained in:
KirillPamPam
2024-08-27 15:33:51 +04:00
committed by GitHub
parent 4943953c42
commit ad79f2c521

View File

@@ -437,16 +437,10 @@ class GenericWsHeadTest {
Duration.ofSeconds(60), Duration.ofSeconds(60),
) )
StepVerifier.create(wsHead.getFlux())
.then { wsHead.start() }
.expectNext(BlockContainer.from(block1))
.then {
StepVerifier.create(wsHead.headLiveness()) StepVerifier.create(wsHead.headLiveness())
.then { wsHead.start() }
.expectNext(HeadLivenessState.FATAL_ERROR) .expectNext(HeadLivenessState.FATAL_ERROR)
.thenCancel() .thenCancel()
.verify(Duration.ofSeconds(2))
}
.thenCancel()
.verify(Duration.ofSeconds(3)) .verify(Duration.ofSeconds(3))
verify(connection, times(2)).callRpc(ChainRequest("eth_chainId", ListParams())) verify(connection, times(2)).callRpc(ChainRequest("eth_chainId", ListParams()))