From 0aa9dc83ac070de05a356ba8df9dded0dda6c2e2 Mon Sep 17 00:00:00 2001 From: liuyq-617 Date: Wed, 26 Jan 2022 14:51:22 +0800 Subject: [PATCH] [TD-13276]fix case error when using taosadapter --- tests/pytest/functions/variable_httpDbNameMandatory.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/pytest/functions/variable_httpDbNameMandatory.py b/tests/pytest/functions/variable_httpDbNameMandatory.py index 0de796903f..40415f4d9b 100644 --- a/tests/pytest/functions/variable_httpDbNameMandatory.py +++ b/tests/pytest/functions/variable_httpDbNameMandatory.py @@ -139,7 +139,8 @@ class TDTestCase: 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'])) + if pname not in str(val): + tdLog.info("httpDbNameMandatory by restful query data:%s == expect:1" % (rj['httpDbNameMandatory'])) def run(self): -- GitLab