提交 1e01ac20 编写于 作者: P Ping Xiao

fix test case

上级 a0981ed7
...@@ -43,7 +43,8 @@ class TDTestCase: ...@@ -43,7 +43,8 @@ class TDTestCase:
print("==============step2") print("==============step2")
tdDnodes.stopAll() tdDnodes.stopAll()
filename = '/var/lib/taos/mnode/wal/wal0' path = tdDnodes.getDnodesRootDir()
filename = path + '/dnode1/data/mnode/wal/wal0'
with open(filename, 'rb') as f1: with open(filename, 'rb') as f1:
temp = f1.read() temp = f1.read()
...@@ -57,12 +58,12 @@ class TDTestCase: ...@@ -57,12 +58,12 @@ class TDTestCase:
print("==============step3") print("==============step3")
tdSql.execute("use demo;") tdSql.execute("use demo;")
tdSql.query('show tables;') tdSql.query('show tables;')
tdSql.checkRows(10) tdSql.checkRows(9)
for i in range(11,21): for i in range(11,21):
tdSql.execute("CREATE table if not exists test{num} using meters tags({num});".format(num=i)) tdSql.execute("CREATE table if not exists test{num} using meters tags({num});".format(num=i))
tdSql.query('show tables;') tdSql.query('show tables;')
tdSql.checkRows(20) tdSql.checkRows(19)
print("==============check table numbers and create 10 tables") print("==============check table numbers and create 10 tables")
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册