Skip to content

Commit

Permalink
Treat end of cursor as failure
Browse files Browse the repository at this point in the history
  • Loading branch information
jduo committed Jun 29, 2024
1 parent 5a17ece commit 325e12c
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions java/integTest/src/test/java/glide/SharedCommandTests.java
Original file line number Diff line number Diff line change
Expand Up @@ -7645,9 +7645,7 @@ public void sscan(BaseClient client) {
secondResultValues.addAll(
Arrays.stream((Object[]) result[resultCollectionIndex]).collect(Collectors.toSet()));

if (resultCursor.equals("0")) {
break;
}
assertNotEquals("0", resultCursor);

// Scan with result cursor has a different set
Object[] secondResult = client.sscan(key1, resultCursor).get();
Expand Down Expand Up @@ -7811,9 +7809,7 @@ public void zscan(BaseClient client) {
secondResultAllValues.add(resultEntry[i + 1]);
}

if (resultCursor.equals("0")) {
break;
}
assertNotEquals("0", resultCursor);

// Scan with result cursor has a different set
Object[] secondResult = client.zscan(key1, resultCursor).get();
Expand Down

0 comments on commit 325e12c

Please sign in to comment.