提交 7834655c 编写于 作者: J jiacy-jcy

update test case

上级 76f31418
......@@ -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()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册