Skip to content

Commit a5e64a9

Browse files
committed
setup check with dd_run_check
1 parent e73734c commit a5e64a9

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

envoy/tests/test_bench.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
# (C) Datadog, Inc. 2026-present
1+
# (C) Datadog, Inc. 2025-present
22
# All rights reserved
33
# Licensed under a 3-clause BSD style license (see LICENSE)
44

55
from datadog_checks.envoy import Envoy
66

77
from .common import DEFAULT_INSTANCE, get_fixture_path
88

9+
OPENMETRICS_FIXTURE = get_fixture_path('./openmetrics/openmetrics.txt')
910

10-
def test_openmetrics_check(benchmark, mock_http_response):
11-
mock_http_response(file_path=get_fixture_path('./openmetrics/openmetrics.txt'))
1211

13-
c = Envoy('envoy', {}, [DEFAULT_INSTANCE])
12+
def test_openmetrics_check(benchmark, dd_run_check, mock_http_response):
13+
mock_http_response(file_path=OPENMETRICS_FIXTURE)
1414

15-
# Run once to get any first-run overhead out of the way.
16-
c.check(DEFAULT_INSTANCE)
15+
c = Envoy('envoy', {}, [DEFAULT_INSTANCE])
16+
dd_run_check(c)
1717

1818
benchmark(c.check, DEFAULT_INSTANCE)

0 commit comments

Comments
 (0)