From d09083037f64929ee2f8f78df2e1cb036d52c85a Mon Sep 17 00:00:00 2001 From: liuyq-617 Date: Wed, 26 Jan 2022 14:48:52 +0800 Subject: [PATCH] [TD-13276]fix case error when using taosadapter --- tests/pytest/functions/variable_httpDbNameMandatory.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/pytest/functions/variable_httpDbNameMandatory.py b/tests/pytest/functions/variable_httpDbNameMandatory.py index 09f141ce7a..0de796903f 100644 --- a/tests/pytest/functions/variable_httpDbNameMandatory.py +++ b/tests/pytest/functions/variable_httpDbNameMandatory.py @@ -136,7 +136,7 @@ class TDTestCase: p = subprocess.Popen(cmd,shell=True, stdout=subprocess.PIPE) if p.wait() == 0: val = p.stdout.read() - if rj['httpDbNameMandatory'] != '1' and pname in str(val): + if rj['httpDbNameMandatory'] != '1' and pname not in str(val): tdLog.info('httpDbNameMandatory data:%s == expect:0'%rj['httpDbNameMandatory']) tdLog.exit(1) tdLog.info("httpDbNameMandatory by restful query data:%s == expect:1" % (rj['httpDbNameMandatory'])) -- GitLab