Fixes lower data calculation (#410)
This commit is contained in:
@@ -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))
|
||||
|
||||
|
||||
@@ -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))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user