enh: robustness of test case
This commit is contained in:
parent
bad49e31ef
commit
70a3e969fa
|
@ -508,7 +508,7 @@ pipeline {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('linux test') {
|
stage('linux test') {
|
||||||
agent{label "slave1_47 || slave1_48 || slave1_49 || slave1_50 || slave1_52 || slave1_59 || slave1_63 || worker03 || slave215 || slave217 || slave219 "}
|
agent{label "slave1_47 || slave1_48 || slave1_49 || slave1_50 || slave1_52 || slave1_59 || slave1_63 "}
|
||||||
options { skipDefaultCheckout() }
|
options { skipDefaultCheckout() }
|
||||||
when {
|
when {
|
||||||
changeRequest()
|
changeRequest()
|
||||||
|
|
|
@ -1542,7 +1542,7 @@ class TDTestCase:
|
||||||
|
|
||||||
def query_precision(self):
|
def query_precision(self):
|
||||||
def generate_data(precision="ms"):
|
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("use db_%s;" %precision)
|
||||||
tdSql.execute("create stable db_%s.st (ts timestamp , id int) tags(ind int);"%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)
|
tdSql.execute("create table db_%s.tb1 using st tags(1);"%precision)
|
||||||
|
|
|
@ -395,7 +395,7 @@ class TDTestCase:
|
||||||
def query_precision(self):
|
def query_precision(self):
|
||||||
def generate_data(precision="ms"):
|
def generate_data(precision="ms"):
|
||||||
dbname = f"db_{precision}"
|
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("use db_%s;" %precision)
|
||||||
tdSql.execute(f"create stable db_%s.st (ts timestamp , id int) tags(ind int);"%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)
|
tdSql.execute(f"create table db_%s.tb1 using {dbname}.st tags(1);"%precision)
|
||||||
|
@ -449,7 +449,7 @@ class TDTestCase:
|
||||||
def check_boundary_values(self, dbname="bound_test"):
|
def check_boundary_values(self, dbname="bound_test"):
|
||||||
|
|
||||||
tdSql.execute(f"drop database if exists {dbname}")
|
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(
|
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);"
|
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);"
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue