Skip to content

Commit

Permalink
Update IoTDBTestRunner.java
Browse files Browse the repository at this point in the history
  • Loading branch information
Caideyipi committed Sep 14, 2024
1 parent 30a27b9 commit 1ec7354
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
package org.apache.iotdb.it.framework;

import org.apache.iotdb.it.env.EnvFactory;
import org.apache.iotdb.it.env.EnvType;
import org.apache.iotdb.it.env.MultiEnvFactory;

import org.junit.runner.Description;
Expand Down Expand Up @@ -53,7 +54,9 @@ protected void runChild(final FrameworkMethod method, final RunNotifier notifier
final Description description = describeChild(method);
logger.info("Run {}", description.getMethodName());
final long currentTime = System.currentTimeMillis();
EnvFactory.getEnv().setTestMethodName(description.getMethodName());
if (EnvType.getSystemEnvType() != EnvType.MultiCluster) {
EnvFactory.getEnv().setTestMethodName(description.getMethodName());
}
MultiEnvFactory.setTestMethodName(description.getMethodName());
super.runChild(method, notifier);
final double timeCost = (System.currentTimeMillis() - currentTime) / 1000.0;
Expand Down

0 comments on commit 1ec7354

Please sign in to comment.