Skip to content

Commit

Permalink
Merge pull request #164 from DataDog/yann/fix_dogstatsd_tests
Browse files Browse the repository at this point in the history
[tests] fix dogstatsd thread safety tests
  • Loading branch information
yannmh authored Sep 22, 2016
2 parents 7e47fae + f78954d commit 179d473
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/performance/test_statsd_thread_safety.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ def test_send_batch_metrics(self):
# All metrics were properly submitted
self.assertMetrics(values)

@patch('datadog.dogstatsd.base.time')
@patch('datadog.dogstatsd.context.time')
def test_timed_decorator_threaded(self, mock_time):
"""
`timed` decorator plays well with concurrent threads.
Expand Down Expand Up @@ -254,7 +254,7 @@ def bar():
expected_values = [2 for _ in xrange(0, 10)]
self.assertMetrics(expected_values)

@patch('datadog.dogstatsd.base.time')
@patch('datadog.dogstatsd.context.time')
def test_timed_context_manager_threaded(self, mock_time):
"""
`timed` context manager plays well with concurrent threads.
Expand Down

0 comments on commit 179d473

Please sign in to comment.