diff --git a/tests/pytest/functions/function_elapsed_case.py b/tests/pytest/functions/function_elapsed_case.py index 025354f2c3e31d1483f339e0e4f23bbda4c1e997..02411a2002953521ce7b1abbeaadcc147059dd55 100644 --- a/tests/pytest/functions/function_elapsed_case.py +++ b/tests/pytest/functions/function_elapsed_case.py @@ -322,8 +322,8 @@ class ElapsedCase: if (self.restart): tdSql.execute("drop table elapsed_t") tdSql.execute("drop table elapsed_st") - tdSql.execute("create table elapsed_t as select elapsed(ts) from t1 interval(1m) sliding(30s)") - tdSql.execute("create table elapsed_st as select elapsed(ts) from st1 interval(1m) sliding(30s) group by tbname") + tdSql.error("create table elapsed_t as select elapsed(ts) from t1 interval(1m) sliding(30s)") + tdSql.error("create table elapsed_st as select elapsed(ts) from st1 interval(1m) sliding(30s) group by tbname") def selectIllegalTest(self): tdSql.execute("use wxy_db")