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

update

上级 f9395388
...@@ -24,6 +24,7 @@ class TDTestCase: ...@@ -24,6 +24,7 @@ class TDTestCase:
tdLog.debug("start to execute %s" % __file__) tdLog.debug("start to execute %s" % __file__)
tdSql.init(conn.cursor()) tdSql.init(conn.cursor())
self.dbname = 'db' self.dbname = 'db'
self.delaytime = 10
def get_database_info(self): def get_database_info(self):
tdSql.query('select database()') tdSql.query('select database()')
tdSql.checkData(0,0,None) tdSql.checkData(0,0,None)
...@@ -44,14 +45,14 @@ class TDTestCase: ...@@ -44,14 +45,14 @@ class TDTestCase:
tdSql.query('select server_status()') tdSql.query('select server_status()')
tdSql.checkData(0,0,1) tdSql.checkData(0,0,1)
#!for bug #!for bug
tdDnodes.stoptaosd(1) # tdDnodes.stoptaosd(1)
sleep(10) # sleep(self.delaytime)
tdSql.error('select server_status()') # tdSql.error('select server_status()')
def run(self): def run(self):
self.get_database_info() self.get_database_info()
self.check_version() self.check_version()
# self.get_server_status() self.get_server_status()
def stop(self): def stop(self):
tdSql.close() tdSql.close()
tdLog.success("%s successfully executed" % __file__) tdLog.success("%s successfully executed" % __file__)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册