Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
vangheem committed Sep 30, 2020
1 parent ca29028 commit cad67c6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.rst
Expand Up @@ -4,7 +4,8 @@ CHANGELOG
5.3.54 (unreleased)
-------------------

- Nothing changed yet.
- increase precision of lock metrics reporting
[vangheem]


5.3.53 (2020-09-30)
Expand Down
2 changes: 2 additions & 0 deletions guillotina/db/storages/pg.py
Expand Up @@ -28,6 +28,7 @@

try:
import prometheus_client
from prometheus_client.utils import INF

PG_OPS = prometheus_client.Counter(
"guillotina_db_pg_ops_total",
Expand All @@ -43,6 +44,7 @@
"guillotina_db_pg_lock_time_seconds",
"Histogram of time it takes to acquire locks (in seconds)",
labelnames=["type"],
buckets=(0.0005, 0.001, 0.005, 0.01, 0.05, 0.1, 0.5, 1.0, 2.5, 5.0, INF,),
)

class watch(metrics.watch):
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Expand Up @@ -74,15 +74,15 @@
],
extras_require={
"test": [
"pytest>=3.8.0,<6.1.0",
"pytest>=4.3.0,<6.1.0",
"docker",
"backoff",
"psycopg2-binary",
"pytest-asyncio==0.10.0",
"pytest-cov>=2.0.0,<=2.9.0",
"coverage>=4.0.3",
"pytest-docker-fixtures",
"pytest-rerunfailures<=7.0",
"pytest-rerunfailures<9.0.0",
"openapi-spec-validator",
"asyncmock",
"prometheus-client",
Expand Down

0 comments on commit cad67c6

Please sign in to comment.