提交 8d3bad97 编写于 作者: C cpwu

fix case

上级 77b890e2
......@@ -50,31 +50,35 @@ class TDTestCase:
tdSql.execute("drop database if exists db1")
tdSql.execute("create database db1 wal 1")
tdSql.query("show datsbases")
tdSql.query("show databases")
for i in range(tdSql.queryRows):
if tdSql.queryResult[i][0] == "db1":
tdSql.checkData(i, wal_index, 1)
tdSql.execute("drop database if exists db1")
tdSql.execute("create database db1 wal 2")
tdSql.query("show databases")
for i in range(tdSql.queryRows):
if tdSql.queryResult[i][0] == "db1":
tdSql.checkData(i, wal_index, 2)
tdSql.execute("drop database if exists db1")
tdSql.execute("create database db1 fsync 0")
tdSql.query("show databases")
for i in range(tdSql.queryRows):
if tdSql.queryResult[i][0] == "db1":
tdSql.checkData(i, fsync_index, 0)
tdSql.execute("drop database if exists db1")
tdSql.execute("create database db1 fsync 3000")
tdSql.query("show databases")
for i in range(tdSql.queryRows):
if tdSql.queryResult[i][0] == "db1":
tdSql.checkData(i, fsync_index, 3000)
tdSql.execute("drop database if exists db1")
tdSql.execute("create database db1 fsync 180000")
tdSql.query("show databases")
for i in range(tdSql.queryRows):
if tdSql.queryResult[i][0] == "db1":
tdSql.checkData(i, fsync_index, 180000)
......@@ -82,6 +86,7 @@ class TDTestCase:
tdSql.execute("drop database if exists db1")
tdSql.execute("create database db1 wal 1 fsync 3000")
tdSql.query("show databases")
for i in range(tdSql.queryRows):
if tdSql.queryResult[i][0] == "db1":
tdSql.checkData(i, fsync_index, 180000)
......@@ -89,42 +94,49 @@ class TDTestCase:
tdSql.execute("drop database if exists db1")
tdSql.execute("create database db1 wal 2 fsync 3000")
tdSql.query("show databases")
for i in range(tdSql.queryRows):
if tdSql.queryResult[i][0] == "db1":
tdSql.checkData(i, fsync_index, 3000)
tdSql.checkData(i, wal_index, 2)
tdSql.execute("alter database db1 wal 1")
tdSql.query("show databases")
for i in range(tdSql.queryRows):
if tdSql.queryResult[i][0] == "db1":
tdSql.checkData(i, fsync_index, 3000)
tdSql.checkData(i, wal_index, 1)
tdSql.execute("alter database db1 wal 2")
tdSql.query("show databases")
for i in range(tdSql.queryRows):
if tdSql.queryResult[i][0] == "db1":
tdSql.checkData(i, fsync_index, 3000)
tdSql.checkData(i, wal_index, 2)
tdSql.execute("alter database db1 fsync 0")
tdSql.query("show databases")
for i in range(tdSql.queryRows):
if tdSql.queryResult[i][0] == "db1":
tdSql.checkData(i, fsync_index, 0)
tdSql.checkData(i, wal_index, 2)
tdSql.execute("alter database db1 fsync 3000")
tdSql.query("show databases")
for i in range(tdSql.queryRows):
if tdSql.queryResult[i][0] == "db1":
tdSql.checkData(i, fsync_index, 3000)
tdSql.checkData(i, wal_index, 2)
tdSql.execute("alter database db1 fsync 18000")
tdSql.query("show databases")
for i in range(tdSql.queryRows):
if tdSql.queryResult[i][0] == "db1":
tdSql.checkData(i, fsync_index, 18000)
tdSql.checkData(i, wal_index, 2)
tdSql.execute("alter database db1 wal 1 fsync 3000")
tdSql.query("show databases")
for i in range(tdSql.queryRows):
if tdSql.queryResult[i][0] == "db1":
tdSql.checkData(i, fsync_index, 3000)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册