From 92608f0231580a068904f932c6210819f04804b5 Mon Sep 17 00:00:00 2001 From: Shengliang Guan Date: Sat, 18 Jul 2020 00:20:02 +0800 Subject: [PATCH] scripts --- tests/script/general/table/vgroup.sim | 8 +------- tests/script/unique/db/delete_part.sim | 8 ++++---- tests/script/unique/db/replica_reduce21.sim | 3 --- 3 files changed, 5 insertions(+), 14 deletions(-) diff --git a/tests/script/general/table/vgroup.sim b/tests/script/general/table/vgroup.sim index 201ecaaad4..9a86c3ef31 100644 --- a/tests/script/general/table/vgroup.sim +++ b/tests/script/general/table/vgroup.sim @@ -1,6 +1,7 @@ system sh/stop_dnodes.sh system sh/deploy.sh -n dnode1 -i 1 system sh/cfg.sh -n dnode1 -c walLevel -v 0 +system sh/cfg.sh -n dnode1 -c maxVgroupsPerDb -v 4 system sh/exec.sh -n dnode1 -s start sleep 3000 @@ -77,10 +78,6 @@ if $rows != 0 then return -1 endi -sql create table table1 (ts timestamp, speed int) -x error2 - return -1 -error2: - $i = 0 $db = $dbPrefix . $i sql drop database $db @@ -133,9 +130,6 @@ $i = 4 $db = $dbPrefix . $i sql create database $db sql use $db -sql create table table5 (ts timestamp, speed int) -x error3 - return -1 -error3: sql show databases if $rows != 5 then diff --git a/tests/script/unique/db/delete_part.sim b/tests/script/unique/db/delete_part.sim index d55899a22f..fd92c160d9 100644 --- a/tests/script/unique/db/delete_part.sim +++ b/tests/script/unique/db/delete_part.sim @@ -14,10 +14,10 @@ system sh/cfg.sh -n dnode2 -c numOfMnodes -v 1 system sh/cfg.sh -n dnode3 -c numOfMnodes -v 1 system sh/cfg.sh -n dnode4 -c numOfMnodes -v 1 -system sh/cfg.sh -n dnode1 -c mnodeEqualVnodeNum -v 4 -system sh/cfg.sh -n dnode2 -c mnodeEqualVnodeNum -v 4 -system sh/cfg.sh -n dnode3 -c mnodeEqualVnodeNum -v 4 -system sh/cfg.sh -n dnode4 -c mnodeEqualVnodeNum -v 4 +system sh/cfg.sh -n dnode1 -c mnodeEqualVnodeNum -v 0 +system sh/cfg.sh -n dnode2 -c mnodeEqualVnodeNum -v 0 +system sh/cfg.sh -n dnode3 -c mnodeEqualVnodeNum -v 0 +system sh/cfg.sh -n dnode4 -c mnodeEqualVnodeNum -v 0 system sh/cfg.sh -n dnode1 -c maxVgroupsPerDb -v 8 system sh/cfg.sh -n dnode2 -c maxVgroupsPerDb -v 8 diff --git a/tests/script/unique/db/replica_reduce21.sim b/tests/script/unique/db/replica_reduce21.sim index 8d4d9fc8c3..a64f4370c8 100644 --- a/tests/script/unique/db/replica_reduce21.sim +++ b/tests/script/unique/db/replica_reduce21.sim @@ -59,9 +59,6 @@ endi print ======== step2 create d5 sql create database d5 replica 1 -sql create table d5.t5 (ts timestamp, i int) -x error1 - return -1 -error1: print ========= step3 alter d1 sql alter database d1 replica 1 -- GitLab