Skip to content

Commit a38b85c

Browse files
committed
Align OffsetScrolling to zero-based indexes.
Closes #1764
1 parent 5a3ceb2 commit a38b85c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-data-r2dbc/src/test/java/org/springframework/data/r2dbc/repository/support/AbstractSimpleR2dbcRepositoryIntegrationTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -857,7 +857,7 @@ void findByScrollPosition() {
857857

858858
repository
859859
.findBy(Example.of(probe, matching().withIgnorePaths("id")),
860-
q -> q.sortBy(Sort.by("name")).limit(2).scroll(ScrollPosition.offset(2))) //
860+
q -> q.sortBy(Sort.by("name")).limit(2).scroll(ScrollPosition.offset(1))) //
861861
.as(StepVerifier::create) //
862862
.consumeNextWith(window -> {
863863

0 commit comments

Comments
 (0)