Skip to content

Commit

Permalink
Address PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
jduo committed Jun 29, 2024
1 parent c5ce336 commit e8bb5ad
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions java/integTest/src/test/java/glide/SharedCommandTests.java
Original file line number Diff line number Diff line change
Expand Up @@ -7446,12 +7446,12 @@ public void hscan(BaseClient client) {
// Test match pattern
result =
client.hscan(key1, initialCursor, HScanOptions.builder().matchPattern("*").build()).get();
assertNotEquals(0, result[resultCursorIndex].toString());
assertTrue(Long.parseLong(result[resultCursorIndex].toString()) >= 0);
assertTrue(ArrayUtils.getLength(result[resultCollectionIndex]) >= defaultCount);

// Test count
result = client.hscan(key1, initialCursor, HScanOptions.builder().count(20L).build()).get();
assertNotEquals("0", result[resultCursorIndex].toString());
assertTrue(Long.parseLong(result[resultCursorIndex].toString()) >= 0);
assertTrue(ArrayUtils.getLength(result[resultCollectionIndex]) >= 20);

// Test count with match returns a non-empty list
Expand All @@ -7460,7 +7460,7 @@ public void hscan(BaseClient client) {
.hscan(
key1, initialCursor, HScanOptions.builder().matchPattern("1*").count(20L).build())
.get();
assertTrue(Long.parseLong(result[resultCursorIndex].toString()) > 0);
assertTrue(Long.parseLong(result[resultCursorIndex].toString()) >= 0);
assertTrue(ArrayUtils.getLength(result[resultCollectionIndex]) > 0);

// Exceptions
Expand Down

0 comments on commit e8bb5ad

Please sign in to comment.