From 4b59297c66d90c09698c70d29c06fc4d732752d6 Mon Sep 17 00:00:00 2001 From: 54liuyao <54liuyao@163.com> Date: Wed, 19 Apr 2023 10:36:16 +0800 Subject: [PATCH] increase sleep time --- tests/script/tsim/stream/windowClose.sim | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/tests/script/tsim/stream/windowClose.sim b/tests/script/tsim/stream/windowClose.sim index d3bc25d731..5bd17e076e 100644 --- a/tests/script/tsim/stream/windowClose.sim +++ b/tests/script/tsim/stream/windowClose.sim @@ -22,11 +22,20 @@ sql create stream stream1 trigger window_close into streamt as select _wstart, sql insert into tu1 values(now, 1); -sleep 500 +$loop_count = 0 + +loop0: +sleep 1000 +$loop_count = $loop_count + 1 +if $loop_count == 10 then + return -1 +endi + sql select * from streamt; + if $rows != 0 then print ======$rows - return -1 + goto loop0 endi @@ -57,10 +66,10 @@ $loop_count = 0 loop1: -sleep 200 +sleep 1000 $loop_count = $loop_count + 1 -if $loop_count == 10 then +if $loop_count == 20 then return -1 endi -- GitLab