提交 6c7eab55 编写于 作者: S Shuduo Sang

fix stable/query-after-reset.py

[TD-1032]
上级 e3330b69
...@@ -72,8 +72,12 @@ class Test: ...@@ -72,8 +72,12 @@ class Test:
def query_stable(self): def query_stable(self):
tdLog.info("query super table") tdLog.info("query super table")
tdSql.query("select * from st") try:
tdSql.checkRows(1) tdSql.query("select * from st")
except Exception as e:
tdLog.info("Exception catched: %s" % repr(e))
if ('mnode invalid table name' not in repr(e)):
raise Exception(repr(e))
def create_stable(self): def create_stable(self):
tdLog.info("create a super table and sub-table and insert data") tdLog.info("create a super table and sub-table and insert data")
...@@ -162,10 +166,15 @@ class TDTestCase: ...@@ -162,10 +166,15 @@ class TDTestCase:
12: test.stop_database, 12: test.stop_database,
} }
tdLog.info("create stable")
switch.get(4, lambda: "ERROR")() switch.get(4, lambda: "ERROR")()
tdLog.info("stop database")
switch.get(12, lambda: "ERROR")() switch.get(12, lambda: "ERROR")()
tdLog.info("delete datafiles")
switch.get(10, lambda: "ERROR")() switch.get(10, lambda: "ERROR")()
tdLog.info("restart database")
switch.get(5, lambda: "ERROR")() switch.get(5, lambda: "ERROR")()
tdLog.info("query stable")
switch.get(11, lambda: "ERROR")() switch.get(11, lambda: "ERROR")()
def stop(self): def stop(self):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册