提交 43e95e1a 编写于 作者: G Ganlin Zhao

fix test cases

上级 c5708907
...@@ -43,7 +43,7 @@ class TDTestCase: ...@@ -43,7 +43,7 @@ class TDTestCase:
print("==============step2") print("==============step2")
tdDnodes.stopAll() tdDnodes.stopAll()
path = tdDnodes.getDnodesRootDir() path = tdDnodes.getDnodesRootDir()
filename = path + '/dnode1/data/mnode/wal/wal0' filename = path + '/dnode1/data/mnode/wal/wal0'
with open(filename, 'rb') as f1: with open(filename, 'rb') as f1:
...@@ -54,7 +54,7 @@ class TDTestCase: ...@@ -54,7 +54,7 @@ class TDTestCase:
tdDnodes.start(1) tdDnodes.start(1)
print("==============remove last tow bytes of file 'wal0' and restart taosd") print("==============remove last tow bytes of file 'wal0' and restart taosd")
print("==============step3") print("==============step3")
tdSql.execute("use demo;") tdSql.execute("use demo;")
tdSql.query('show tables;') tdSql.query('show tables;')
......
...@@ -110,7 +110,7 @@ class TDTestCase: ...@@ -110,7 +110,7 @@ class TDTestCase:
tdSql.execute("use db") tdSql.execute("use db")
tdSql.query("show databases") tdSql.query("show databases")
tdSql.checkRows(2) tdSql.checkRows(3)
dbresult = tdSql.queryResult dbresult = tdSql.queryResult
# 6--days,7--keep0,keep1,keep, 12--block, # 6--days,7--keep0,keep1,keep, 12--block,
......
...@@ -101,7 +101,7 @@ class TDTestCase: ...@@ -101,7 +101,7 @@ class TDTestCase:
os.system("%s -i ./taosdumptest/tmp -y" % binPath) os.system("%s -i ./taosdumptest/tmp -y" % binPath)
tdSql.query("show databases") tdSql.query("show databases")
tdSql.checkRows(1) tdSql.checkRows(2)
tdSql.checkData(0, 0, 'db') tdSql.checkData(0, 0, 'db')
tdSql.execute("use db") tdSql.execute("use db")
...@@ -130,7 +130,7 @@ class TDTestCase: ...@@ -130,7 +130,7 @@ class TDTestCase:
tdSql.execute("drop database test") tdSql.execute("drop database test")
tdSql.query("show databases") tdSql.query("show databases")
tdSql.checkRows(1) tdSql.checkRows(2)
os.system("%s -i ./taosdumptest/tmp -y" % binPath) os.system("%s -i ./taosdumptest/tmp -y" % binPath)
......
...@@ -308,7 +308,7 @@ class TDTestCase: ...@@ -308,7 +308,7 @@ class TDTestCase:
os.system("%s -i ./taosdumptest/tmp6 -T 8 " % binPath) os.system("%s -i ./taosdumptest/tmp6 -T 8 " % binPath)
tdSql.execute("use dp3") tdSql.execute("use dp3")
tdSql.query("show databases") tdSql.query("show databases")
tdSql.checkRows(1) tdSql.checkRows(2)
tdSql.checkData(0, 16, 'ns') tdSql.checkData(0, 16, 'ns')
tdSql.query("show stables") tdSql.query("show stables")
tdSql.checkRows(1) tdSql.checkRows(1)
...@@ -325,7 +325,7 @@ class TDTestCase: ...@@ -325,7 +325,7 @@ class TDTestCase:
os.system("%s -i ./taosdumptest/tmp7 -T 8 " % binPath) os.system("%s -i ./taosdumptest/tmp7 -T 8 " % binPath)
tdSql.execute("use dp3") tdSql.execute("use dp3")
tdSql.query("show databases") tdSql.query("show databases")
tdSql.checkRows(1) tdSql.checkRows(2)
tdSql.checkData(0, 16, 'ms') tdSql.checkData(0, 16, 'ms')
tdSql.query("show stables") tdSql.query("show stables")
tdSql.checkRows(1) tdSql.checkRows(1)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册