From 404fb2313577e7e838e0cc696103a8a670d31587 Mon Sep 17 00:00:00 2001 From: wenzhouwww Date: Wed, 4 Aug 2021 16:46:51 +0800 Subject: [PATCH] "fix an error in test case " fix an error in test case about "tao_consume is called too frequently so that the interval between them is less than the interval set in taos_subscribe." --- .../tools/taosdemoAllTest/taosdemoTestSupportNanosubscribe.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/pytest/tools/taosdemoAllTest/taosdemoTestSupportNanosubscribe.py b/tests/pytest/tools/taosdemoAllTest/taosdemoTestSupportNanosubscribe.py index ddbac4b42e..393ced14fd 100644 --- a/tests/pytest/tools/taosdemoAllTest/taosdemoTestSupportNanosubscribe.py +++ b/tests/pytest/tools/taosdemoAllTest/taosdemoTestSupportNanosubscribe.py @@ -79,7 +79,7 @@ class TDTestCase: # merge result files - sleep(20) + sleep(5) os.system("cat subscribe_res0.txt* > all_subscribe_res0.txt") os.system("cat subscribe_res1.txt* > all_subscribe_res1.txt") os.system("cat subscribe_res2.txt* > all_subscribe_res2.txt") @@ -99,7 +99,7 @@ class TDTestCase: # insert extral data tdSql.execute("use subnsdb") tdSql.execute("insert into tb0_0 values(now,100.1000,'subtest1',now-1s)") - sleep(10) + sleep(15) os.system("cat subscribe_res0.txt* > all_subscribe_res0.txt") subTimes0 = self.subTimes("all_subscribe_res0.txt") -- GitLab