mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
Fix statsd test for millisecond times
This commit is contained in:
parent
7c10c7d22d
commit
59bf9b5867
@ -49,6 +49,6 @@ def test_instrument():
|
||||
logger.sock.reset()
|
||||
|
||||
logger.access(MockResponse("200 OK"), None, {}, timedelta(seconds=7))
|
||||
t.eq(logger.sock.msgs[0], "gunicorn.request.duration:7.0|ms")
|
||||
t.eq(logger.sock.msgs[0], "gunicorn.request.duration:7000.0|ms")
|
||||
t.eq(logger.sock.msgs[1], "gunicorn.requests:1|c|@1.0")
|
||||
t.eq(logger.sock.msgs[2], "gunicorn.request.status.200:1|c|@1.0")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user