IGNITE-7003: Fixed faulty test WalModeChangeAdvancedSelfTest.testJoinCoordinator.
authordevozerov <vozerov@gridgain.com>
Mon, 12 Feb 2018 13:34:24 +0000 (16:34 +0300)
committerdevozerov <vozerov@gridgain.com>
Mon, 12 Feb 2018 13:34:24 +0000 (16:34 +0300)
modules/core/src/test/java/org/apache/ignite/internal/processors/cache/WalModeChangeAdvancedSelfTest.java

index 2c6bccf..44c5855 100644 (file)
@@ -167,12 +167,11 @@ public class WalModeChangeAdvancedSelfTest extends WalModeChangeCommonAbstractSe
 
         // Start other nodes.
         startGrid(config(SRV_2, false, false));
-        assertForAllNodes(CACHE_NAME, false);
 
-        if (crdFiltered) {
+        if (crdFiltered)
             srv.cluster().disableWal(CACHE_NAME);
-            assertForAllNodes(CACHE_NAME, false);
-        }
+
+        assertForAllNodes(CACHE_NAME, false);
 
         startGrid(config(SRV_3, false, !crdFiltered));
         assertForAllNodes(CACHE_NAME, false);
@@ -192,12 +191,11 @@ public class WalModeChangeAdvancedSelfTest extends WalModeChangeCommonAbstractSe
 
         // Start other nodes again.
         startGrid(config(SRV_2, false, false));
-        assertForAllNodes(CACHE_NAME, true);
 
-        if (crdFiltered) {
+        if (crdFiltered)
             srv.cluster().enableWal(CACHE_NAME);
-            assertForAllNodes(CACHE_NAME, true);
-        }
+
+        assertForAllNodes(CACHE_NAME, true);
 
         startGrid(config(SRV_3, false, !crdFiltered));
         assertForAllNodes(CACHE_NAME, true);