From 1b8e556e6066892e73ef024d899ab40df836c28b Mon Sep 17 00:00:00 2001 From: Shengliang Guan Date: Sat, 15 Oct 2022 18:20:50 +0800 Subject: [PATCH] fix: unstable test case --- tests/script/tsim/valgrind/checkError3.sim | 6 ++++-- tests/script/tsim/valgrind/checkError6.sim | 5 +++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/tests/script/tsim/valgrind/checkError3.sim b/tests/script/tsim/valgrind/checkError3.sim index 8691a8890e..252ef10b1a 100644 --- a/tests/script/tsim/valgrind/checkError3.sim +++ b/tests/script/tsim/valgrind/checkError3.sim @@ -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 diff --git a/tests/script/tsim/valgrind/checkError6.sim b/tests/script/tsim/valgrind/checkError6.sim index cac398a525..89b6cadef8 100644 --- a/tests/script/tsim/valgrind/checkError6.sim +++ b/tests/script/tsim/valgrind/checkError6.sim @@ -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 -- GitLab