From f1fe388881a7128c6c2ebb5bef5e1ed5df342b21 Mon Sep 17 00:00:00 2001 From: AlexDuan <417921451@qq.com> Date: Tue, 31 Aug 2021 10:36:52 +0800 Subject: [PATCH] restore showOffline....py file --- .../functions/showOfflineThresholdIs864000.py | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/tests/pytest/functions/showOfflineThresholdIs864000.py b/tests/pytest/functions/showOfflineThresholdIs864000.py index 7462d4cd72..8ec25cef26 100644 --- a/tests/pytest/functions/showOfflineThresholdIs864000.py +++ b/tests/pytest/functions/showOfflineThresholdIs864000.py @@ -12,8 +12,6 @@ # -*- coding: utf-8 -*- import sys -import numpy as np - from util.log import * from util.cases import * from util.sql import * @@ -26,17 +24,8 @@ class TDTestCase: tdSql.init(conn.cursor(), logSql) 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.checkData(index_value, 1, 864000) - pass - + tdSql.checkData(55, 1, 864000) def stop(self): tdSql.close() -- GitLab