From e8fb9f513e553678a3d148b104f8c070e7c39035 Mon Sep 17 00:00:00 2001 From: Ping Xiao Date: Fri, 23 Dec 2022 10:32:19 +0800 Subject: [PATCH] fix test failure --- tests/parallel_test/cases.task | 4 ++-- tests/system-test/2-query/db.py | 6 +++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/tests/parallel_test/cases.task b/tests/parallel_test/cases.task index b703f434df..44bf6cc6f1 100644 --- a/tests/parallel_test/cases.task +++ b/tests/parallel_test/cases.task @@ -480,8 +480,8 @@ ,,y,system-test,./pytest.sh python3 ./test.py -f 2-query/count.py -R ,,y,system-test,./pytest.sh python3 ./test.py -f 2-query/countAlwaysReturnValue.py ,,y,system-test,./pytest.sh python3 ./test.py -f 2-query/countAlwaysReturnValue.py -R -,,y,system-test,./pytest.sh python3 ./test.py -f 2-query/db.py -,,y,system-test,./pytest.sh python3 ./test.py -f 2-query/db.py -R +,,y,system-test,./pytest.sh python3 ./test.py -f 2-query/db.py +,,y,system-test,./pytest.sh python3 ./test.py -f 2-query/db.py -N 3 -n 3 -R ,,y,system-test,./pytest.sh python3 ./test.py -f 2-query/diff.py ,,y,system-test,./pytest.sh python3 ./test.py -f 2-query/diff.py -R ,,y,system-test,./pytest.sh python3 ./test.py -f 2-query/distinct.py diff --git a/tests/system-test/2-query/db.py b/tests/system-test/2-query/db.py index f6982ccb2a..d79e2074dd 100644 --- a/tests/system-test/2-query/db.py +++ b/tests/system-test/2-query/db.py @@ -54,7 +54,11 @@ class TDTestCase: tdSql.checkData(0, 1, 'debugFlag') tdSql.checkData(0, 2, 0) - tdSql.execute("alter dnode 2 'debugFlag 135'") + tdSql.query("show dnode 1 variables like '%debugFlag'") + tdSql.checkRows(21) + + tdSql.query("show dnode 1 variables like '____debugFlag'") + tdSql.checkRows(2) def run(self): # sourcery skip: extract-duplicate-method, remove-redundant-fstring tdSql.prepare(replica = self.replicaVar)