Skip to content

Commit c589612

Browse files
committed
Use application mode client for supportability tests.
1 parent b538ee8 commit c589612

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

tests/agent_unittests/test_http_client.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
from newrelic.common import certs
1010
from newrelic.common.agent_http import (
11+
ApplicationModeClient,
1112
DeveloperModeClient,
1213
HttpClient,
1314
InsecureHttpClient,
@@ -190,7 +191,7 @@ def test_http_no_payload(server, method):
190191
def test_non_ok_response(server):
191192
internal_metrics = CustomMetrics()
192193

193-
with HttpClient(
194+
with ApplicationModeClient(
194195
"localhost", server.port, disable_certificate_validation=True
195196
) as client:
196197
with InternalTraceContext(internal_metrics):
@@ -232,7 +233,7 @@ def test_http_payload_compression(server, method, threshold):
232233

233234
internal_metrics = CustomMetrics()
234235

235-
with HttpClient(
236+
with ApplicationModeClient(
236237
"localhost",
237238
server.port,
238239
disable_certificate_validation=True,
@@ -543,8 +544,8 @@ def test_serverless_mode_client():
543544
(
544545
(HttpClient, "localhost", False),
545546
(HttpClient, None, False),
546-
(HttpClient, None, True),
547-
(HttpClient, "localhost", True),
547+
(ApplicationModeClient, None, True),
548+
(ApplicationModeClient, "localhost", True),
548549
(DeveloperModeClient, None, False),
549550
(ServerlessModeClient, None, False),
550551
(InsecureHttpClient, None, False),

0 commit comments

Comments
 (0)