Skip to content

Commit a2576a4

Browse files
committed
Address test failures.
1 parent 98ca851 commit a2576a4

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

Dockerfile

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ RUN pip install . -t ./python/lib/$runtime/site-packages
1313

1414
# Remove *.pyc files
1515
RUN find ./python/lib/$runtime/site-packages -name \*.pyc -delete
16+
RUN find ./python/lib/$runtime/site-packages -name __pycache__ -delete
1617

1718
# Remove botocore (40MB) to reduce package size. aws-xray-sdk
1819
# installs it, while it's already provided by the Lambda Runtime.

pyproject.toml

-2
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,7 @@ urllib3 = [
3333
{version = "<2.0.0", python = "<3.11", optional = true},
3434
{version = "<2.1.0", python = ">=3.11", optional = true},
3535
]
36-
importlib_metadata = {version = "*", python = "<3.8"}
3736
boto3 = { version = "^1.28.0", optional = true }
38-
typing_extensions = {version = "^4.0", python = "<3.8"}
3937
requests = { version ="^2.22.0", optional = true }
4038
pytest = { version= "^8.0.0", optional = true }
4139
pytest-benchmark = { version = "^4.0", optional = true }

tests/test_wrapper.py

+1
Original file line numberDiff line numberDiff line change
@@ -534,6 +534,7 @@ def lambda_handler(event, context):
534534
lambda_context = get_mock_context()
535535
test_span = tracer.trace("test_span")
536536
trace_ctx = tracer.current_trace_context()
537+
trace_ctx.sampling_priority = 1
537538
test_span.finish()
538539
lambda_handler.inferred_span = test_span
539540
lambda_handler.make_inferred_span = False

0 commit comments

Comments
 (0)