Skip to content

Commit 629c198

Browse files
authored
Fix: update unit test to use real lambda arn (#1267)
This has to be done because the lambda instrumentation was updated to extract the account id from the arn present in the lambda context in this PR: open-telemetry/opentelemetry-python-contrib#2367
1 parent 6e8faec commit 629c198

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/src/otel/tests/test_otel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def __init__(self, aws_request_id, invoked_function_arn):
5959

6060
MOCK_LAMBDA_CONTEXT = MockLambdaContext(
6161
aws_request_id="mock_aws_request_id",
62-
invoked_function_arn="arn://mock-lambda-function-arn",
62+
invoked_function_arn="arn:aws:lambda:us-west-2:123456789012:function:my-function",
6363
)
6464

6565
MOCK_XRAY_TRACE_ID = 0x5FB7331105E8BB83207FA31D4D9CDB4C

0 commit comments

Comments
 (0)