提交 d9dcac0d 编写于 作者: C Cary Xu

enh: make the test case more rebust

上级 2b4408ff
...@@ -33,14 +33,14 @@ sql insert into ct1 values(now+2s, 100); ...@@ -33,14 +33,14 @@ sql insert into ct1 values(now+2s, 100);
print =============== select * from retention level 2 from memory print =============== select * from retention level 2 from memory
sql select * from ct1; sql select * from ct1;
print $data00 $data01 print $data00 $data01
if $rows > 1 then if $rows > 2 then
print retention level 2 file rows $rows > 1 print retention level 2 file rows $rows > 1
return -1 return -1
endi endi
print =============== select * from retention level 1 from memory print =============== select * from retention level 1 from memory
sql select * from ct1 where ts > now-8d; sql select * from ct1 where ts > now-8d;
print $data00 $data01 print $data00 $data01
if $rows > 1 then if $rows > 2 then
print retention level 1 file rows $rows > 1 print retention level 1 file rows $rows > 1
return -1 return -1
endi endi
...@@ -63,7 +63,7 @@ system sh/exec.sh -n dnode1 -s start ...@@ -63,7 +63,7 @@ system sh/exec.sh -n dnode1 -s start
print =============== select * from retention level 2 from file print =============== select * from retention level 2 from file
sql select * from ct1; sql select * from ct1;
print $data00 $data01 print $data00 $data01
if $rows > 1 then if $rows > 2 then
print retention level 2 file rows $rows > 1 print retention level 2 file rows $rows > 1
return -1 return -1
endi endi
...@@ -71,7 +71,7 @@ endi ...@@ -71,7 +71,7 @@ endi
print =============== select * from retention level 1 from file print =============== select * from retention level 1 from file
sql select * from ct1 where ts > now-8d; sql select * from ct1 where ts > now-8d;
print $data00 $data01 print $data00 $data01
if $rows > 1 then if $rows > 2 then
print retention level 1 file rows $rows > 1 print retention level 1 file rows $rows > 1
return -1 return -1
endi endi
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册