Skip to content

Commit

Permalink
Add better logging for set comparisons
Browse files Browse the repository at this point in the history
  • Loading branch information
jduo committed Jun 28, 2024
1 parent 4c85a16 commit 43738ba
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions java/integTest/src/test/java/glide/SharedCommandTests.java
Original file line number Diff line number Diff line change
Expand Up @@ -7047,7 +7047,8 @@ public void sscan(BaseClient client) {
assertEquals(charMembers.length, ((Object[]) result[resultCollectionIndex]).length);
final Set<Object> resultMembers =
Arrays.stream((Object[]) result[resultCollectionIndex]).collect(Collectors.toSet());
assertTrue(resultMembers.containsAll(charMemberSet));
assertTrue(resultMembers.containsAll(charMemberSet),
String.format("resultMembers: {%s}, charMemberSet: {%s}", resultMembers, charMemberSet));

result =
client.sscan(key1, initialCursor, SScanOptions.builder().matchPattern("a").build()).get();
Expand Down Expand Up @@ -7076,7 +7077,8 @@ public void sscan(BaseClient client) {
.collect(Collectors.toSet()));
} while (resultCursor != 0); // 0 is returned for the cursor of the last iteration.

assertTrue(secondResultValues.containsAll(numberMembersSet));
assertTrue(secondResultValues.containsAll(numberMembersSet),
String.format("secondResultValues: {%s}, numberMembersSet: {%s}", secondResultValues, numberMembersSet));

// Test match pattern
result =
Expand Down

0 comments on commit 43738ba

Please sign in to comment.