sashapolo commented on a change in pull request #407:
URL: https://github.com/apache/ignite-3/pull/407#discussion_r734375893
##########
File path:
modules/runner/src/integrationTest/java/org/apache/ignite/internal/calcite/AbstractBasicIntegrationTest.java
##########
@@ -101,39 +100,28 @@
/** Work directory */
@WorkDirectory
- private Path workDir;
-
- @BeforeEach
- protected void bootstrap() {
- if (!CLUSTER_NODES.isEmpty())
- return;
+ private static Path WORK_DIR;
+ /** */
+ @BeforeAll
+ static void startNodes() {
NODES_BOOTSTRAP_CFG.forEach((nodeName, configStr) ->
- CLUSTER_NODES.add(IgnitionManager.start(nodeName, configStr,
workDir.resolve(nodeName)))
+ CLUSTER_NODES.add(IgnitionManager.start(nodeName, configStr,
WORK_DIR.resolve(nodeName)))
);
-
- initTestData();
}
/** */
@AfterAll
- static void tearDown() throws Exception {
- if (CLUSTER_NODES.isEmpty())
- return;
-
- if (LOG.isInfoEnabled())
- LOG.info("Start tearDown()");
+ static void stopNodes() throws Exception {
+ LOG.info("Start tearDown()");
IgniteUtils.closeAll(ITUtils.reverse(CLUSTER_NODES));
- CLUSTER_NODES.clear();
Review comment:
Indeed!
--
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]