From 17238d69b50cc45cb86ac9312d11dfa2abbf40c7 Mon Sep 17 00:00:00 2001 From: tomchon Date: Wed, 15 Dec 2021 11:42:38 +0800 Subject: [PATCH] modify taosdemo query test case --- .../tools/taosdemoAllTest/querySuperMutisql100.json | 2 +- .../taosdemoAllTest/taosdemoTestQueryWithJson.py | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/tests/pytest/tools/taosdemoAllTest/querySuperMutisql100.json b/tests/pytest/tools/taosdemoAllTest/querySuperMutisql100.json index c85713c94c..6a59d4d75d 100644 --- a/tests/pytest/tools/taosdemoAllTest/querySuperMutisql100.json +++ b/tests/pytest/tools/taosdemoAllTest/querySuperMutisql100.json @@ -11,7 +11,7 @@ "super_table_query": { "stblname": "stb0", "query_interval": 10000, - "concurrent": 9, + "threads": 9, "sqls": [ { "sql": "select last_row(*) from xxxx", diff --git a/tests/pytest/tools/taosdemoAllTest/taosdemoTestQueryWithJson.py b/tests/pytest/tools/taosdemoAllTest/taosdemoTestQueryWithJson.py index e0b56b93ba..06dcda4806 100644 --- a/tests/pytest/tools/taosdemoAllTest/taosdemoTestQueryWithJson.py +++ b/tests/pytest/tools/taosdemoAllTest/taosdemoTestQueryWithJson.py @@ -174,15 +174,15 @@ class TDTestCase: "2020-11-01 00:00:00.004") # query times less than or equal to 100 - os.system( + assert os.system( "%staosBenchmark -f tools/taosdemoAllTest/queryInsertdata.json" % - binPath) - os.system( + binPath) == 0 + assert os.system( "%staosBenchmark -f tools/taosdemoAllTest/querySpeciMutisql100.json" % - binPath) - os.system( + binPath) != 0 + assert os.system( "%staosBenchmark -f tools/taosdemoAllTest/querySuperMutisql100.json" % - binPath) + binPath) == 0 # query result print QPS os.system( -- GitLab