aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--tensorflow/contrib/slim/python/slim/evaluation_test.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tensorflow/contrib/slim/python/slim/evaluation_test.py b/tensorflow/contrib/slim/python/slim/evaluation_test.py
index 5464c87bb5..b12c82e985 100644
--- a/tensorflow/contrib/slim/python/slim/evaluation_test.py
+++ b/tensorflow/contrib/slim/python/slim/evaluation_test.py
@@ -284,10 +284,12 @@ class EvaluationTest(tf.test.TestCase):
'', chkpt_dir, logdir, eval_op=update_op,
eval_interval_secs=2.0, timeout=6.0)
end = time.time()
+
# Check we've waited for the timeout.
self.assertGreater(end - start, 6.0)
+
# Then the timeout kicked in and stops the loop.
- self.assertLess(end - start, 7.5)
+ self.assertLess(end - start, 8.0)
class SingleEvaluationTest(tf.test.TestCase):