public static void createEnv(final int num) {
    // Not judge EnvType for individual test convenience
    final long startTime = System.currentTimeMillis();
    for (int i = 0; i < num; ++i) {
      try {
        Class.forName(Config.JDBC_DRIVER_NAME);
        envList.add(new MultiClusterEnv(startTime, i, currentMethodName));
      } catch (final ClassNotFoundException e) {
        logger.error("Create env error", e);
        System.exit(-1);
      }
    }
  }
Create several environments according to the specific number.
integration-test/src/main/java/org/apache/iotdb/it/env/MultiEnvFactory.java