File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
java/integTest/src/test/java/glide Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -7042,6 +7042,12 @@ public void sscan(BaseClient client) {
7042
7042
7043
7043
// Result contains the whole set
7044
7044
assertEquals (charMembers .length , client .sadd (key1 , charMembers ).get ());
7045
+ // Sleep after sadd() for eventual consistency.
7046
+ // TODO: Replace sleep with WAIT request to enforce strong consistency.
7047
+ try {
7048
+ Thread .sleep (1000 );
7049
+ } catch (InterruptedException ex ) {
7050
+ }
7045
7051
result = client .sscan (key1 , initialCursor ).get ();
7046
7052
assertEquals (String .valueOf (initialCursor ), result [resultCursorIndex ]);
7047
7053
assertEquals (charMembers .length , ((Object []) result [resultCollectionIndex ]).length );
@@ -7058,6 +7064,12 @@ public void sscan(BaseClient client) {
7058
7064
7059
7065
// Result contains a subset of the key
7060
7066
assertEquals (numberMembers .length , client .sadd (key1 , numberMembers ).get ());
7067
+ // Sleep after sadd() for eventual consistency.
7068
+ // TODO: Replace sleep with WAIT request to enforce strong consistency.
7069
+ try {
7070
+ Thread .sleep (1000 );
7071
+ } catch (InterruptedException ex ) {
7072
+ }
7061
7073
long resultCursor = 0 ;
7062
7074
final Set <Object > secondResultValues = new HashSet <>();
7063
7075
do {
You can’t perform that action at this time.
0 commit comments