提交 9c44f1fa 编写于 作者: S Shengliang Guan

test: update snode test case

上级 4026ff62
...@@ -75,46 +75,46 @@ if $data02 != LEADER then ...@@ -75,46 +75,46 @@ if $data02 != LEADER then
return -1 return -1
endi endi
print =============== create drop qnode 1 print =============== create drop snode 1
sql create qnode on dnode 1 sql create snode on dnode 1
sql show qnodes sql show snodes
if $rows != 1 then if $rows != 1 then
return -1 return -1
endi endi
if $data00 != 1 then if $data00 != 1 then
return -1 return -1
endi endi
sql_error create qnode on dnode 1 sql_error create snode on dnode 1
sql drop qnode on dnode 1 sql drop snode on dnode 1
sql show qnodes sql show snodes
if $rows != 0 then if $rows != 0 then
return -1 return -1
endi endi
sql_error drop qnode on dnode 1 sql_error drop snode on dnode 1
print =============== create drop qnode 2 print =============== create drop snode 2
sql create qnode on dnode 2 sql create snode on dnode 2
sql show qnodes sql show snodes
if $rows != 1 then if $rows != 1 then
return -1 return -1
endi endi
if $data00 != 2 then if $data00 != 2 then
return -1 return -1
endi endi
sql_error create qnode on dnode 2 sql_error create snode on dnode 2
sql drop qnode on dnode 2 sql drop snode on dnode 2
sql show qnodes sql show snodes
if $rows != 0 then if $rows != 0 then
return -1 return -1
endi endi
sql_error drop qnode on dnode 2 sql_error drop snode on dnode 2
print =============== create drop qnodes print =============== create drop snodes
sql create qnode on dnode 1 sql create snode on dnode 1
sql create qnode on dnode 2 sql create snode on dnode 2
sql show qnodes sql show snodes
if $rows != 2 then if $rows != 2 then
return -1 return -1
endi endi
...@@ -126,7 +126,7 @@ system sh/exec.sh -n dnode1 -s start ...@@ -126,7 +126,7 @@ system sh/exec.sh -n dnode1 -s start
system sh/exec.sh -n dnode2 -s start system sh/exec.sh -n dnode2 -s start
sleep 2000 sleep 2000
sql show qnodes sql show snodes
if $rows != 2 then if $rows != 2 then
return -1 return -1
endi endi
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册