提交 09be00b1 编写于 作者: W wenzhouwww

[TD-5369]<test> : fix an case error about: tao_consume is called too...

[TD-5369]<test> : fix an case error about: tao_consume is called too frequently so that the interval between them is less than the interval set in taos_subscribe
上级 6c0a048d
...@@ -79,7 +79,7 @@ class TDTestCase: ...@@ -79,7 +79,7 @@ class TDTestCase:
# merge result files # merge result files
sleep(10) sleep(5)
os.system("cat subscribe_res0.txt* > all_subscribe_res0.txt") os.system("cat subscribe_res0.txt* > all_subscribe_res0.txt")
os.system("cat subscribe_res1.txt* > all_subscribe_res1.txt") os.system("cat subscribe_res1.txt* > all_subscribe_res1.txt")
os.system("cat subscribe_res2.txt* > all_subscribe_res2.txt") os.system("cat subscribe_res2.txt* > all_subscribe_res2.txt")
...@@ -99,11 +99,10 @@ class TDTestCase: ...@@ -99,11 +99,10 @@ class TDTestCase:
# insert extral data # insert extral data
tdSql.execute("use subnsdb") tdSql.execute("use subnsdb")
tdSql.execute("insert into tb0_0 values(now,100.1000,'subtest1',now-1s)") tdSql.execute("insert into tb0_0 values(now,100.1000,'subtest1',now-1s)")
sleep(1) sleep(15)
os.system("cat subscribe_res0.txt* > all_subscribe_res0.txt") os.system("cat subscribe_res0.txt* > all_subscribe_res0.txt")
subTimes0 = self.subTimes("all_subscribe_res0.txt") subTimes0 = self.subTimes("all_subscribe_res0.txt")
print("pass")
self.assertCheck("all_subscribe_res0.txt",subTimes0 ,202) self.assertCheck("all_subscribe_res0.txt",subTimes0 ,202)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册