Update precisionNS.py

This commit is contained in:
haoranchen 2023-08-16 13:47:05 +08:00 committed by GitHub
parent 1bd9c5337d
commit 1074e02f36
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 7 deletions

View File

@ -224,13 +224,13 @@ class TDTestCase:
sql = f"select timediff(ts - {val}b, ts1) from st "
self.checkExpect(sql, val)
# # init
# def init(self, conn, logSql, replicaVar=1):
# seed = time.clock_gettime(time.CLOCK_REALTIME)
# random.seed(seed)
# self.replicaVar = int(replicaVar)
# tdLog.debug(f"start to excute {__file__}")
# tdSql.init(conn.cursor(), True)
# init
def init(self, conn, logSql, replicaVar=1):
seed = time.time() % 10000
random.seed(seed)
self.replicaVar = int(replicaVar)
tdLog.debug(f"start to excute {__file__}")
tdSql.init(conn.cursor(), True)
# where
def checkWhere(self):