Skip to content

Commit

Permalink
Longer sleeps
Browse files Browse the repository at this point in the history
  • Loading branch information
jduo committed Jun 28, 2024
1 parent e9e1544 commit 91c51b9
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions java/integTest/src/test/java/glide/SharedCommandTests.java
Original file line number Diff line number Diff line change
Expand Up @@ -7180,10 +7180,7 @@ public void zscan(BaseClient client) {
assertEquals(charMembers.length, client.zadd(key1, charMap).get());
// Sleep after zadd() for eventual consistency.
// TODO: Replace sleep with WAIT request to enforce strong consistency.
try {
Thread.sleep(1000);
} catch (InterruptedException ex) {
}
Thread.sleep(5000);
result = client.zscan(key1, initialCursor).get();
assertEquals(String.valueOf(initialCursor), result[resultCursorIndex]);
assertEquals(
Expand Down Expand Up @@ -7223,10 +7220,7 @@ public void zscan(BaseClient client) {
assertEquals(numberMap.size(), client.zadd(key1, numberMap).get());
// Sleep after zadd() for eventual consistency.
// TODO: Replace sleep with WAIT request to enforce strong consistency.
try {
Thread.sleep(1000);
} catch (InterruptedException ex) {
}
Thread.sleep(5000);
long resultCursor = 0;
final Set<Object> secondResultAllKeys = new HashSet<>();
final Set<Object> secondResultAllValues = new HashSet<>();
Expand Down

0 comments on commit 91c51b9

Please sign in to comment.