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) {
70427042
70437043 // Result contains the whole set
70447044 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+ }
70457051 result = client .sscan (key1 , initialCursor ).get ();
70467052 assertEquals (String .valueOf (initialCursor ), result [resultCursorIndex ]);
70477053 assertEquals (charMembers .length , ((Object []) result [resultCollectionIndex ]).length );
@@ -7058,6 +7064,12 @@ public void sscan(BaseClient client) {
70587064
70597065 // Result contains a subset of the key
70607066 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+ }
70617073 long resultCursor = 0 ;
70627074 final Set <Object > secondResultValues = new HashSet <>();
70637075 do {
You can’t perform that action at this time.
0 commit comments