From 44fd2cb354ce0929c3bb12c7656bfd1e7f45a019 Mon Sep 17 00:00:00 2001 From: tomchon Date: Fri, 22 Jul 2022 10:39:45 +0800 Subject: [PATCH] test: modify testcases of muti-mnodes --- .../6-cluster/5dnode3mnodeSep1VnodeStopVnodeCreateDb.py | 4 ++-- tests/system-test/6-cluster/clusterCommonCheck.py | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/system-test/6-cluster/5dnode3mnodeSep1VnodeStopVnodeCreateDb.py b/tests/system-test/6-cluster/5dnode3mnodeSep1VnodeStopVnodeCreateDb.py index 2ec1106777..4c9c07092c 100644 --- a/tests/system-test/6-cluster/5dnode3mnodeSep1VnodeStopVnodeCreateDb.py +++ b/tests/system-test/6-cluster/5dnode3mnodeSep1VnodeStopVnodeCreateDb.py @@ -159,8 +159,8 @@ class TDTestCase: for tr in threads: tr.join() clusterComCheck.checkDnodes(dnodeNumbers) - tdSql.query("show databases") - tdLog.debug("we find %d databases but exepect to create %d databases "%(tdSql.queryRows-2,allDbNumbers)) + # tdSql.query("show databases") + # tdLog.debug("we find %d databases but exepect to create %d databases "%(tdSql.queryRows-2,allDbNumbers)) # tdLog.info("check DB Rows:") clusterComCheck.checkDbRows(allDbNumbers) diff --git a/tests/system-test/6-cluster/clusterCommonCheck.py b/tests/system-test/6-cluster/clusterCommonCheck.py index 203d756353..12ae34ac2b 100644 --- a/tests/system-test/6-cluster/clusterCommonCheck.py +++ b/tests/system-test/6-cluster/clusterCommonCheck.py @@ -63,6 +63,7 @@ class ClusterComCheck: count=0 while count < 5: tdSql.query("show databases;") + count+=1 if tdSql.checkRows(dbNumbers+2): tdLog.success("we find %d databases and expect %d in clusters! " %(tdSql.queryRows,dbNumbers+2)) return True -- GitLab