From 7834655c93f9b06b12aacdbf960ed0a9a9eb373b Mon Sep 17 00:00:00 2001 From: jiacy-jcy Date: Tue, 19 Jul 2022 09:14:13 +0800 Subject: [PATCH] update test case --- tests/system-test/0-others/sysinfo.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tests/system-test/0-others/sysinfo.py b/tests/system-test/0-others/sysinfo.py index f0db151165..129c8bc530 100644 --- a/tests/system-test/0-others/sysinfo.py +++ b/tests/system-test/0-others/sysinfo.py @@ -24,7 +24,7 @@ class TDTestCase: tdLog.debug("start to execute %s" % __file__) tdSql.init(conn.cursor()) self.dbname = 'db' - self.delaytime = 10 + self.delaytime = 3 def get_database_info(self): tdSql.query('select database()') tdSql.checkData(0,0,None) @@ -42,12 +42,13 @@ class TDTestCase: tdSql.checkData(0,0,version_info) def get_server_status(self): + sleep(self.delaytime) tdSql.query('select server_status()') tdSql.checkData(0,0,1) #!for bug - # tdDnodes.stoptaosd(1) - # sleep(self.delaytime) - # tdSql.error('select server_status()') + tdDnodes.stoptaosd(1) + sleep(self.delaytime) + tdSql.error('select server_status()') def run(self): self.get_database_info() -- GitLab