From a946ee94260249ff7162186371aa81df4f5e1301 Mon Sep 17 00:00:00 2001 From: yihaoDeng Date: Mon, 9 Oct 2023 17:05:37 +0800 Subject: [PATCH] change test case --- tests/system-test/0-others/splitVGroupRep1.py | 7 +++++-- tests/system-test/0-others/splitVGroupRep3.py | 4 +++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/tests/system-test/0-others/splitVGroupRep1.py b/tests/system-test/0-others/splitVGroupRep1.py index 7a728419dc..63c7693f95 100644 --- a/tests/system-test/0-others/splitVGroupRep1.py +++ b/tests/system-test/0-others/splitVGroupRep1.py @@ -381,7 +381,8 @@ class TDTestCase: tdSql.execute("use streamdb;") tdSql.execute("create table ta(ts timestamp, age int);") tdSql.execute("create stream ma into sta as select count(*) from ta interval(1s);") - #self.expectSplitError("streamdb") + time.sleep(3) + self.expectSplitError("streamdb") tdSql.execute("drop stream ma;") self.expectSplitOk("streamdb") @@ -391,7 +392,9 @@ class TDTestCase: tdSql.execute("use topicdb;") tdSql.execute("create table ta(ts timestamp, age int);") tdSql.execute("create topic toa as select * from ta;") - #self.expectSplitError("topicdb") + sleep.time(3) + + self.expectSplitError("topicdb") tdSql.execute("drop topic toa;") self.expectSplitOk("topicdb") diff --git a/tests/system-test/0-others/splitVGroupRep3.py b/tests/system-test/0-others/splitVGroupRep3.py index 68c915eeaf..d37ab252d5 100644 --- a/tests/system-test/0-others/splitVGroupRep3.py +++ b/tests/system-test/0-others/splitVGroupRep3.py @@ -380,6 +380,7 @@ class TDTestCase: tdSql.execute("use streamdb;") tdSql.execute("create table ta(ts timestamp, age int);") tdSql.execute("create stream ma into sta as select count(*) from ta interval(1s);") + time.sleep(3) self.expectSplitError("streamdb") tdSql.execute("drop stream ma;") self.expectSplitOk("streamdb") @@ -390,7 +391,8 @@ class TDTestCase: tdSql.execute("use topicdb;") tdSql.execute("create table ta(ts timestamp, age int);") tdSql.execute("create topic toa as select * from ta;") - #self.expectSplitError("topicdb") + time.sleep(3) + self.expectSplitError("topicdb") tdSql.execute("drop topic toa;") self.expectSplitOk("topicdb")