You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ignite.apache.org by GitBox <gi...@apache.org> on 2021/06/14 07:14:49 UTC

[GitHub] [ignite] ygerzhedovich commented on a change in pull request #9161: IGNITE-14854 Fix tests IgniteCacheLocalQueryDefaultTimeoutSelfTest fo…

ygerzhedovich commented on a change in pull request #9161:
URL: https://github.com/apache/ignite/pull/9161#discussion_r649849201



##########
File path: modules/indexing/src/test/java/org/apache/ignite/internal/processors/cache/local/IgniteCacheLocalQueryDefaultTimeoutSelfTest.java
##########
@@ -139,7 +142,11 @@ private void testQuery(boolean timeout, int timeoutUnits, TimeUnit timeUnit) {
         }
 
         try (QueryCursor<List<?>> ignored = cursor) {
-            cursor.iterator();
+            Iterator<List<?>> it = cursor.iterator();
+
+            if (qry.isLazy())
+                while (it.hasNext())
+                    it.next();

Review comment:
       ```suggestion
               if (qry.isLazy()) {
                   while (it.hasNext())
                       it.next();
               }
   ```




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org