statsd test_context_manager randomly fails
We randomly get this error, I think it's a race condition but it's kinda annoying and I don't see how to debug it :/ (and we don't uses statsd anymore apparently)
________________________________________________________________________________________________________ StatsdTC.test_context_manager ________________________________________________________________________________________________________
self = <unittest_statsd.StatsdTC testMethod=test_context_manager>
def test_context_manager(self):
with statsd.statsd_timethis('cm'):
time.sleep(0.1)
> self.check_received_ms('test.cm:100.????|ms')
cubicweb/test/unittest_statsd.py:130:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
cubicweb/test/unittest_statsd.py:87: in check_received_ms
self.assertTrue([x for x in DATA if value.match(x)], DATA)
E AssertionError: [] is not true : ['test.cm:103.0493|ms', 'test.cm:1|c']