Skip to content

Commit

Permalink
Increase time.sleep value on timing metrics tests
Browse files Browse the repository at this point in the history
  • Loading branch information
marctc committed May 25, 2016
1 parent d6e18df commit 1031869
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/unit/test_metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down

0 comments on commit 1031869

Please sign in to comment.