IGNITE-8077 Do not attempt to clean up work directory on running grid in ConfigVariationTests
Project: http://git-wip-us.apache.org/repos/asf/ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/c57488ac Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/c57488ac Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/c57488ac Branch: refs/heads/ignite-6083 Commit: c57488acd3dc42f1ad93bf235026217358cc5442 Parents: e0d1752 Author: Alexey Goncharuk <[email protected]> Authored: Mon Apr 23 11:04:28 2018 +0300 Committer: Alexey Goncharuk <[email protected]> Committed: Mon Apr 23 11:24:36 2018 +0300 ---------------------------------------------------------------------- .../junits/IgniteConfigVariationsAbstractTest.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ignite/blob/c57488ac/modules/core/src/test/java/org/apache/ignite/testframework/junits/IgniteConfigVariationsAbstractTest.java ---------------------------------------------------------------------- diff --git a/modules/core/src/test/java/org/apache/ignite/testframework/junits/IgniteConfigVariationsAbstractTest.java b/modules/core/src/test/java/org/apache/ignite/testframework/junits/IgniteConfigVariationsAbstractTest.java index 8365848..0e454a3 100644 --- a/modules/core/src/test/java/org/apache/ignite/testframework/junits/IgniteConfigVariationsAbstractTest.java +++ b/modules/core/src/test/java/org/apache/ignite/testframework/junits/IgniteConfigVariationsAbstractTest.java @@ -81,15 +81,15 @@ public abstract class IgniteConfigVariationsAbstractTest extends GridCommonAbstr @Override protected void beforeTestsStarted() throws Exception { assert testsCfg != null; - FileUtils.deleteDirectory(workDir); - - info("Ignite's 'work' directory has been cleaned."); - if (Ignition.allGrids().size() != testsCfg.gridCount()) { info("All nodes will be stopped, new " + testsCfg.gridCount() + " nodes will be started."); Ignition.stopAll(true); + FileUtils.deleteDirectory(workDir); + + info("Ignite's 'work' directory has been cleaned."); + startGrids(testsCfg.gridCount()); for (int i = 0; i < testsCfg.gridCount(); i++)
