zstan commented on a change in pull request #9527:
URL: https://github.com/apache/ignite/pull/9527#discussion_r736429498



##########
File path: 
modules/core/src/test/java/org/apache/ignite/internal/processors/metastorage/DistributedMetaStorageTest.java
##########
@@ -65,12 +72,16 @@
     @Override protected void beforeTestsStarted() throws Exception {
         super.beforeTestsStarted();
 
-        startGrid(0);
+        IgniteEx ign = startGrid(0);
 
         // We have to start the second node and wait when it is started
         // to be sure that all async metastorage updates of the node_0 are 
completed.
         startGrid(1);
 
+        ign.cluster().state(ClusterState.ACTIVE);
+
+        waitForCondition(() -> (int)metastorage(0).getUpdatesCount() == 
(isPersistent() ? 4 : 2), 10_000);

Review comment:
       Looks ugly but i have no ideas how to make it more clear.




-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to