Skip to content

Commit 50c58a2

Browse files
committed
fix tests
1 parent 372b28c commit 50c58a2

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

instrumentation/opentelemetry-instrumentation-botocore/tests/test_botocore_instrumentation.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -342,6 +342,7 @@ def test_suppress_instrumentation_xray_client(self):
342342

343343
@mock_xray
344344
def test_suppress_http_instrumentation_xray_client(self):
345+
xray_client = self._make_client("xray")
345346
with suppress_http_instrumentation():
346347
xray_client.put_trace_segments(TraceSegmentDocuments=["str1"])
347348
xray_client.put_trace_segments(TraceSegmentDocuments=["str2"])

instrumentation/opentelemetry-instrumentation-urllib3/tests/test_urllib3_integration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ def test_suppress_instrumentation(self):
232232
for cm in suppression_cms:
233233
self.memory_exporter.clear()
234234

235-
with self.subTest(key=key):
235+
with self.subTest(cm=cm):
236236
with cm():
237237
response = self.perform_request(self.HTTP_URL)
238238
self.assertEqual(b"Hello!", response.data)

0 commit comments

Comments
 (0)