enh: make the test case more rebust

This commit is contained in:
Cary Xu 2022-05-17 00:12:40 +08:00
parent 2b4408ff9f
commit d9dcac0da5
1 changed files with 4 additions and 4 deletions

View File

@ -33,14 +33,14 @@ sql insert into ct1 values(now+2s, 100);
print =============== select * from retention level 2 from memory
sql select * from ct1;
print $data00 $data01
if $rows > 1 then
if $rows > 2 then
print retention level 2 file rows $rows > 1
return -1
endi
print =============== select * from retention level 1 from memory
sql select * from ct1 where ts > now-8d;
print $data00 $data01
if $rows > 1 then
if $rows > 2 then
print retention level 1 file rows $rows > 1
return -1
endi
@ -63,7 +63,7 @@ system sh/exec.sh -n dnode1 -s start
print =============== select * from retention level 2 from file
sql select * from ct1;
print $data00 $data01
if $rows > 1 then
if $rows > 2 then
print retention level 2 file rows $rows > 1
return -1
endi
@ -71,7 +71,7 @@ endi
print =============== select * from retention level 1 from file
sql select * from ct1 where ts > now-8d;
print $data00 $data01
if $rows > 1 then
if $rows > 2 then
print retention level 1 file rows $rows > 1
return -1
endi