From 86ae32fbd81abf91646f976379a3fd6a89e448d9 Mon Sep 17 00:00:00 2001 From: Yu Yang Date: Fri, 30 Nov 2018 10:26:15 +0800 Subject: [PATCH] Stablize decorator test test=develop --- python/paddle/reader/tests/decorator_test.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/paddle/reader/tests/decorator_test.py b/python/paddle/reader/tests/decorator_test.py index b9af8348e1..a9dddbbcc8 100644 --- a/python/paddle/reader/tests/decorator_test.py +++ b/python/paddle/reader/tests/decorator_test.py @@ -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() -- GitLab