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,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))