Skip to content

Commit e233d73

Browse files
committed
add IT
Signed-off-by: Weihao Li <[email protected]>
1 parent e243883 commit e233d73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

integration-test/src/test/java/org/apache/iotdb/relational/it/query/recent/informationschema/IoTDBCurrentQueriesIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ public class IoTDBCurrentQueriesIT {
6464

6565
@BeforeClass
6666
public static void setUp() throws Exception {
67-
EnvFactory.getEnv().getConfig().getDataNodeConfig().setQueryCostStatWindow(1);
6867
EnvFactory.getEnv().initClusterEnvironment();
6968
createUser("test", "test123123456");
7069
}
@@ -81,6 +80,7 @@ public void testCurrentQueries() {
8180
EnvFactory.getEnv().getConnection(ADMIN_NAME, ADMIN_PWD, BaseEnv.TABLE_SQL_DIALECT);
8281
Statement statement = connection.createStatement();
8382
statement.execute("USE information_schema");
83+
statement.execute("set configuration \"query_cost_stat_window\"='1'");
8484

8585
// 1. query current_queries table
8686
String sql = "SELECT * FROM current_queries";

0 commit comments

Comments
 (0)