test: case for drop mnode

This commit is contained in:
Shengliang Guan 2022-05-27 09:48:25 +08:00
parent 17ed7e0747
commit c943497ad5
2 changed files with 5 additions and 5 deletions

View File

@ -55,7 +55,7 @@
./test.sh -f tsim/bnode/basic1.sim ./test.sh -f tsim/bnode/basic1.sim
# ---- mnode # ---- mnode
#./test.sh -f tsim/mnode/basic1.sim ./test.sh -f tsim/mnode/basic1.sim
./test.sh -f tsim/mnode/basic2.sim ./test.sh -f tsim/mnode/basic2.sim
# ---- show # ---- show

View File

@ -88,7 +88,7 @@ sql show mnodes
print $data(1)[0] $data(1)[1] $data(1)[2] print $data(1)[0] $data(1)[1] $data(1)[2]
print $data(2)[0] $data(2)[1] $data(2)[2] print $data(2)[0] $data(2)[1] $data(2)[2]
if $rows != 2 then if $rows != 1 then
return -1 return -1
endi endi
if $data(1)[0] != 1 then if $data(1)[0] != 1 then
@ -97,16 +97,16 @@ endi
if $data(1)[2] != LEADER then if $data(1)[2] != LEADER then
return -1 return -1
endi endi
if $data(2)[0] != NULL then if $data(2)[0] != null then
goto step2 goto step2
endi endi
if $data(2)[2] != NULL then if $data(2)[2] != null then
goto step2 goto step2
endi endi
sleep 2000 sleep 2000
print =============== create drop mnodes print =============== create mnodes
sql create mnode on dnode 2 sql create mnode on dnode 2
sql show mnodes sql show mnodes
if $rows != 2 then if $rows != 2 then