From fd03c55a3902b3456afd6a2ecf429afba11b0691 Mon Sep 17 00:00:00 2001 From: tammy-baylis-swi Date: Thu, 4 May 2023 15:11:03 -0700 Subject: [PATCH] Fix botocore test keyerror --- .../tests/test_botocore_instrumentation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/instrumentation/opentelemetry-instrumentation-botocore/tests/test_botocore_instrumentation.py b/instrumentation/opentelemetry-instrumentation-botocore/tests/test_botocore_instrumentation.py index 9a5d8429b5..012f0a4846 100644 --- a/instrumentation/opentelemetry-instrumentation-botocore/tests/test_botocore_instrumentation.py +++ b/instrumentation/opentelemetry-instrumentation-botocore/tests/test_botocore_instrumentation.py @@ -196,7 +196,7 @@ def test_sqs_send_message(self): ) self.memory_exporter.clear() - queue_url = response["QueueUrl"] + queue_url = response.get("QueueUrl") sqs.send_message(QueueUrl=queue_url, MessageBody="Test SQS MESSAGE!") self.assert_span(