From babefefa649c6ec0706bf51102faa4d70f1bc5ef Mon Sep 17 00:00:00 2001 From: Shengliang Guan Date: Thu, 26 May 2022 22:50:46 +0800 Subject: [PATCH] test: case for mnode sync --- tests/script/tsim/mnode/basic2.sim | 6 +++--- tests/script/tsim/mnode/basic3.sim | 10 +++++----- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/tests/script/tsim/mnode/basic2.sim b/tests/script/tsim/mnode/basic2.sim index 024e2b2406..6df3704469 100644 --- a/tests/script/tsim/mnode/basic2.sim +++ b/tests/script/tsim/mnode/basic2.sim @@ -119,9 +119,9 @@ if $data(2)[4] != ready then endi print =============== insert data -#sql create table db.stb (ts timestamp, c1 int, c2 binary(4)) tags(t1 int, t2 float, t3 binary(16)) comment "abd" -#sql create table db.ctb using db.stb tags(101, 102, "103") -#sql insert into db.ctb values(now, 1, "2") +sql create table db.stb (ts timestamp, c1 int, c2 binary(4)) tags(t1 int, t2 float, t3 binary(16)) comment "abd" +sql create table db.ctb using db.stb tags(101, 102, "103") +sql insert into db.ctb values(now, 1, "2") system sh/exec.sh -n dnode1 -s stop system sh/exec.sh -n dnode2 -s stop \ No newline at end of file diff --git a/tests/script/tsim/mnode/basic3.sim b/tests/script/tsim/mnode/basic3.sim index 40c0f01229..b0ee23cd8c 100644 --- a/tests/script/tsim/mnode/basic3.sim +++ b/tests/script/tsim/mnode/basic3.sim @@ -15,7 +15,7 @@ $x = 0 step1: $x = $x + 1 sleep 1000 - if $x == 20 then + if $x == 50 then return -1 endi sql show dnodes -x step1 @@ -37,7 +37,7 @@ $x = 0 step2: $x = $x + 1 sleep 1000 - if $x == 20 then + if $x == 50 then return -1 endi sql show mnodes -x step2 @@ -68,7 +68,7 @@ $x = 0 step4: $x = $x + 1 sleep 1000 - if $x == 20 then + if $x == 50 then return -1 endi sql show mnodes -x step4 @@ -98,7 +98,7 @@ $x = 0 step5: $x = $x + 1 sleep 1000 - if $x == 20 then + if $x == 50 then return -1 endi sql show mnodes -x step5 @@ -119,7 +119,7 @@ $x = 0 step6: $x = $x + 1 sleep 1000 - if $x == 20 then + if $x == 50 then return -1 endi sql show mnodes -x step6 -- GitLab