未验证 提交 566a3259 编写于 作者: Y Yu Yang 提交者: GitHub

Merge pull request #14676 from reyoung/feature/stable_decorator_test

Stablize decorator test
......@@ -62,10 +62,10 @@ class TestBuffered(unittest.TestCase):
for idx, i in enumerate(b()):
elapsed_time = time.time() - last_time
if i == 0:
time.sleep(0.3)
time.sleep(1)
else:
# read time should be short, meaning already buffered.
self.assertLess(elapsed_time, 0.05)
self.assertLess(elapsed_time, 0.08)
last_time = time.time()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册