提交 86ae32fb 编写于 作者: Y Yu Yang

Stablize decorator test

test=develop
上级 5d334ff0
......@@ -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.
先完成此消息的编辑!
想要评论请 注册