Fixes lower data calculation (#410)

This commit is contained in:
KirillPamPam
2024-02-01 14:01:35 +04:00
committed by GitHub
parent aebd15f547
commit 7fba7dfe4e
8 changed files with 36 additions and 10 deletions

View File

@@ -38,7 +38,7 @@ class RecursiveLowerBoundBlockDetectorTest {
StepVerifier.withVirtualTime { detector.lowerBlock() }
.expectSubscription()
.expectNoEvent(Duration.ofSeconds(15))
.expectNext(LowerBoundBlockDetector.LowerBlockData(17964844L))
.expectNextMatches { it.blockNumber == 17964844L }
.thenCancel()
.verify(Duration.ofSeconds(3))
@@ -64,7 +64,7 @@ class RecursiveLowerBoundBlockDetectorTest {
StepVerifier.withVirtualTime { detector.lowerBlock() }
.expectSubscription()
.expectNoEvent(Duration.ofSeconds(15))
.expectNext(LowerBoundBlockDetector.LowerBlockData(1))
.expectNextMatches { it.blockNumber == 1L }
.thenCancel()
.verify(Duration.ofSeconds(3))

View File

@@ -61,7 +61,7 @@ class SolanaLowerBoundBlockDetectorTest {
StepVerifier.withVirtualTime { detector.lowerBlock() }
.expectSubscription()
.expectNoEvent(Duration.ofSeconds(15))
.expectNext(LowerBoundBlockDetector.LowerBlockData(21000000, 23000010))
.expectNextMatches { it.blockNumber == 21000000L && it.slot == 23000010L }
.thenCancel()
.verify(Duration.ofSeconds(3))