提交 5d507aea 编写于 作者: S Shengliang Guan

test: adjust case for db option

上级 eec34263
......@@ -66,7 +66,7 @@ print $data(db)[13] $data(db)[14] $data(db)[15] $data(db)[16] $data(db)[17] $dat
if $rows != 3 then
return -1
endi
if $data(db)[19] != ready then
if $data(db)[15] != ready then
goto check_db_ready
endi
......
......@@ -66,7 +66,7 @@ print $data(db)[13] $data(db)[14] $data(db)[15] $data(db)[16] $data(db)[17] $dat
if $rows != 3 then
return -1
endi
if $data(db)[19] != ready then
if $data(db)[15] != ready then
goto check_db_ready
endi
......
......@@ -66,7 +66,7 @@ print $data(db)[13] $data(db)[14] $data(db)[15] $data(db)[16] $data(db)[17] $dat
if $rows != 3 then
return -1
endi
if $data(db)[19] != ready then
if $data(db)[15] != ready then
goto check_db_ready
endi
......
......@@ -39,7 +39,7 @@ sql show databases
print ==> rows: $rows
print ==> $data(db)[0] $data(db)[1] $data(db)[2] $data(db)[3] $data(db)[4] $data(db)[5] $data(db)[6] $data(db)[7] $data(db)[8] $data(db)[9] $data(db)[10] $data(db)[11] $data(db)[12]
print $data(db)[13] $data(db)[14] $data(db)[15] $data(db)[16] $data(db)[17] $data(db)[18] $data(db)[19] $data(db)[20]
if $data(db)[19] != ready then
if $data(db)[15] != ready then
sleep 100
$loop_cnt = $loop_cnt + 1
goto check_db_ready
......
......@@ -39,7 +39,7 @@ sql show databases
print ==> rows: $rows
print ==> $data(db)[0] $data(db)[1] $data(db)[2] $data(db)[3] $data(db)[4] $data(db)[5] $data(db)[6] $data(db)[7] $data(db)[8] $data(db)[9] $data(db)[10] $data(db)[11] $data(db)[12]
print $data(db)[13] $data(db)[14] $data(db)[15] $data(db)[16] $data(db)[17] $data(db)[18] $data(db)[19] $data(db)[20]
if $data(db)[19] != ready then
if $data(db)[15] != ready then
sleep 100
$loop_cnt = $loop_cnt + 1
goto check_db_ready
......
......@@ -31,7 +31,7 @@ sql show databases
print ==> rows: $rows
print ==> $data(db)[0] $data(db)[1] $data(db)[2] $data(db)[3] $data(db)[4] $data(db)[5] $data(db)[6] $data(db)[7] $data(db)[8] $data(db)[9] $data(db)[10] $data(db)[11] $data(db)[12]
print $data(db)[13] $data(db)[14] $data(db)[15] $data(db)[16] $data(db)[17] $data(db)[18] $data(db)[19] $data(db)[20]
if $data(db)[19] != ready then
if $data(db)[15] != ready then
sleep 100
$loop_cnt = $loop_cnt + 1
goto check_db_ready
......
......@@ -90,7 +90,7 @@ class TDTestCase:
for db_info in databases_infos:
dbname = db_info[0]
# print(dbname)
cache_last_value = db_info[16]
cache_last_value = db_info[18]
# print(cache_last_value)
if dbname in ["information_schema" , "performance_schema"]:
continue
......
......@@ -43,9 +43,9 @@ class TDTestCase:
fsync_index = 0
tdSql.query("show databases")
for i in range(tdSql.queryCols):
if tdSql.cursor.description[i][0] == "wal":
if tdSql.cursor.description[i][0] == "wal_level":
wal_index = i
if tdSql.cursor.description[i][0] == "fsync":
if tdSql.cursor.description[i][0] == "wal_fsync_period":
fsync_index = i
tdSql.execute("drop database if exists db1")
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册