From 10318695d702c3b9cbf1556068a0ae28cc5f54e5 Mon Sep 17 00:00:00 2001 From: Marc Date: Sun, 8 May 2016 01:04:00 +0200 Subject: [PATCH] Increase time.sleep value on timing metrics tests --- tests/unit/test_metrics.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/unit/test_metrics.py b/tests/unit/test_metrics.py index 02f1ddb..74654e8 100644 --- a/tests/unit/test_metrics.py +++ b/tests/unit/test_metrics.py @@ -49,13 +49,13 @@ def test_custom(self, metrics, dummy_backend): self.assert_reported_data(dummy_backend, 'xml_response', 'availability.request', value) def test_timed_context_manager(self, metrics, dummy_backend): - value = 10 + value = 100 with metrics.timed('user.query.time', use_ms=True): sleep(value / 1000.0) # in ms self.assert_reported_data(dummy_backend, 'timing', 'user.query.time', value) def test_timed_decorator(self, metrics, dummy_backend): - value = 0.01 + value = 0.1 @metrics.timed(use_ms=False) def get_user():