fix: add test case

This commit is contained in:
slzhou 2023-10-18 15:30:18 +08:00
parent 9c1697bfd1
commit 02658a4b3c
1 changed files with 11 additions and 0 deletions

View File

@ -1,5 +1,6 @@
system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c keepColumnName -v 1
system sh/exec.sh -n dnode1 -s start
sql connect
@ -50,4 +51,14 @@ print $data00
if $data00 != 2 then
return -1
endi
sql select count(*) from (select f, f from ctcount)
print $data00
if $data00 != 2 then
return -1
endi
sql select count(*) from (select last(ts), first(ts) from ctcount);
print $data00
if $data00 != 1 then
return -1
endi
system sh/exec.sh -n dnode1 -s stop -x SIGINT