diff --git a/tensorflow/python/eager/monitoring_test.py b/tensorflow/python/eager/monitoring_test.py index 7cb8c0c2cd1..de9d3bcb8f4 100644 --- a/tensorflow/python/eager/monitoring_test.py +++ b/tensorflow/python/eager/monitoring_test.py @@ -104,10 +104,10 @@ class MonitoringTest(test_util.TensorFlowTestCase): def test_context_manager(self): counter = monitoring.Counter('test/ctxmgr', 'test context manager', 'slot') - with monitoring.MonitoredTimer(counter.get_cell('short')): - time.sleep(0.001) with monitoring.MonitoredTimer(counter.get_cell('long')): - time.sleep(0.02) + time.sleep(0.01) + with monitoring.MonitoredTimer(counter.get_cell('short')): + time.sleep(0.01) self.assertGreater( counter.get_cell('long').value(), counter.get_cell('short').value())