AMashenkov commented on a change in pull request #6839: IGNITE-11815: replace 
GridTestUtils.retryAssert with GridTestUtils.waitForCondition
URL: https://github.com/apache/ignite/pull/6839#discussion_r321334228
 
 

 ##########
 File path: 
modules/core/src/test/java/org/apache/ignite/internal/processors/igfs/IgfsStreamsSelfTest.java
 ##########
 @@ -282,12 +282,10 @@ public void testCreateFileFragmented() throws Exception {
             fs.delete(path, true);
         }
 
-        GridTestUtils.retryAssert(log, ASSERT_RETRIES, ASSERT_RETRY_INTERVAL, 
new CAX() {
-            @Override public void applyx() {
-                for (int i = 0; i < NODES_CNT; i++)
-                    assertTrue(grid(i).cachex(dataCacheName).isEmpty());
-            }
-        });
+        for (int i = 0; i < NODES_CNT; i++) {
+            IgniteEx grid = grid(i);
+            assertTrue(GridTestUtils.waitForCondition(() -> 
grid.cachex(dataCacheName).isEmpty(), ASSERT_RETRIES*ASSERT_RETRY_INTERVAL));
 
 Review comment:
   Wait time increased up to Nodes_Cnt*retries*interval

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to