restore showOffline....py file

This commit is contained in:
AlexDuan 2021-08-31 10:36:52 +08:00
parent 784a0bc17a
commit f1fe388881
1 changed files with 1 additions and 12 deletions

View File

@ -12,8 +12,6 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
import sys import sys
import numpy as np
from util.log import * from util.log import *
from util.cases import * from util.cases import *
from util.sql import * from util.sql import *
@ -26,17 +24,8 @@ class TDTestCase:
tdSql.init(conn.cursor(), logSql) tdSql.init(conn.cursor(), logSql)
def run(self): def run(self):
# tdSql.query("show variables")
# tdSql.checkData(54, 1, 864000)
tdSql.execute("show variables")
res = tdSql.cursor.fetchall()
resList = np.array(res)
index = np.where(resList == "offlineThreshold")
index_value = np.dstack((index[0])).squeeze()
tdSql.query("show variables") tdSql.query("show variables")
tdSql.checkData(index_value, 1, 864000) tdSql.checkData(55, 1, 864000)
pass
def stop(self): def stop(self):
tdSql.close() tdSql.close()