fix: unstable test case

This commit is contained in:
Shengliang Guan 2022-10-15 18:20:50 +08:00
parent 345eca5742
commit 1b8e556e60
2 changed files with 7 additions and 4 deletions

View File

@ -62,10 +62,12 @@ system sh/exec.sh -n dnode1 -s stop -x SIGINT
system sh/exec.sh -n dnode1 -s start -v
print =============== stepa: query data
$x = 0
steps:
$x = $x + 1
sleep 1000
if $x == 20 then
sleep 500
if $x == 50 then
return -1
endi
sql select * from c1 -x steps

View File

@ -158,10 +158,11 @@ print =============== restart
system sh/exec.sh -n dnode1 -s stop -x SIGINT
system sh/exec.sh -n dnode1 -s start -v
$x = 0
steps:
$x = $x + 1
sleep 1000
if $x == 20 then
sleep 500
if $x == 50 then
return -1
endi
sql select avg(tbcol) as c from stb -x steps