Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bonnefoa committed Mar 14, 2023
1 parent 91f77e7 commit abf1991
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion postgres/tests/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def check_common_metrics(aggregator, expected_tags, count=1):

def check_db_count(aggregator, expected_tags, count=1):
aggregator.assert_metric(
'postgresql.table.count', value=5, count=count, tags=expected_tags + ['db:{}'.format(DB_NAME), 'schema:public']
'postgresql.table.count', value=6, count=count, tags=expected_tags + ['db:{}'.format(DB_NAME), 'schema:public']
)
aggregator.assert_metric('postgresql.db.count', value=5, count=1)

Expand Down
2 changes: 0 additions & 2 deletions postgres/tests/test_relations.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import pytest

from datadog_checks.base import ConfigurationError
from datadog_checks.dev.utils import get_metadata_metrics
from datadog_checks.postgres.relationsmanager import (
IDX_METRICS,
REL_METRICS,
Expand Down Expand Up @@ -87,7 +86,6 @@ def test_relations_metrics(aggregator, integration_check, pg_instance):
posgres_check = integration_check(pg_instance)
posgres_check.check(pg_instance)
_check_relation_metrics(aggregator, pg_instance, 'persons')
aggregator.assert_metrics_using_metadata(get_metadata_metrics())


@pytest.mark.integration
Expand Down

0 comments on commit abf1991

Please sign in to comment.