Skip to content

Commit

Permalink
chore: reboust of test case
Browse files Browse the repository at this point in the history
  • Loading branch information
kailixu committed Dec 29, 2024
1 parent 52c76f4 commit 18c0b89
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/system-test/2-query/elapsed.py
Original file line number Diff line number Diff line change
Expand Up @@ -1542,7 +1542,7 @@ def continuous_query(self):

def query_precision(self):
def generate_data(precision="ms"):
tdSql.execute("create database if not exists db_%s precision '%s';" %(precision, precision))
tdSql.execute("create database if not exists db_%s keep 36500 precision '%s';" %(precision, precision))
tdSql.execute("use db_%s;" %precision)
tdSql.execute("create stable db_%s.st (ts timestamp , id int) tags(ind int);"%precision)
tdSql.execute("create table db_%s.tb1 using st tags(1);"%precision)
Expand Down
4 changes: 2 additions & 2 deletions tests/system-test/2-query/statecount.py
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ def check_unit_time(self, dbname="db"):
def query_precision(self):
def generate_data(precision="ms"):
dbname = f"db_{precision}"
tdSql.execute(f"create database if not exists db_%s precision '%s';" %(precision, precision))
tdSql.execute(f"create database if not exists db_%s keep 36500 precision '%s';" %(precision, precision))
tdSql.execute("use db_%s;" %precision)
tdSql.execute(f"create stable db_%s.st (ts timestamp , id int) tags(ind int);"%precision)
tdSql.execute(f"create table db_%s.tb1 using {dbname}.st tags(1);"%precision)
Expand Down Expand Up @@ -449,7 +449,7 @@ def generate_data(precision="ms"):
def check_boundary_values(self, dbname="bound_test"):

tdSql.execute(f"drop database if exists {dbname}")
tdSql.execute(f"create database if not exists {dbname}")
tdSql.execute(f"create database if not exists {dbname} keep 36500")
tdSql.execute(
f"create table {dbname}.stb_bound (ts timestamp, c1 int, c2 bigint, c3 smallint, c4 tinyint, c5 float, c6 double, c7 bool, c8 binary(32),c9 nchar(32), c10 timestamp) tags (t1 int);"
)
Expand Down

0 comments on commit 18c0b89

Please sign in to comment.