Skip to content

Commit

Permalink
Address test failures.
Browse files Browse the repository at this point in the history
  • Loading branch information
purple4reina committed Apr 16, 2024
1 parent 98ca851 commit a2576a4
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ RUN pip install . -t ./python/lib/$runtime/site-packages

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

# Remove botocore (40MB) to reduce package size. aws-xray-sdk
# installs it, while it's already provided by the Lambda Runtime.
Expand Down
2 changes: 0 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,7 @@ urllib3 = [
{version = "<2.0.0", python = "<3.11", optional = true},
{version = "<2.1.0", python = ">=3.11", optional = true},
]
importlib_metadata = {version = "*", python = "<3.8"}
boto3 = { version = "^1.28.0", optional = true }
typing_extensions = {version = "^4.0", python = "<3.8"}
requests = { version ="^2.22.0", optional = true }
pytest = { version= "^8.0.0", optional = true }
pytest-benchmark = { version = "^4.0", optional = true }
Expand Down
1 change: 1 addition & 0 deletions tests/test_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -534,6 +534,7 @@ def lambda_handler(event, context):
lambda_context = get_mock_context()
test_span = tracer.trace("test_span")
trace_ctx = tracer.current_trace_context()
trace_ctx.sampling_priority = 1
test_span.finish()
lambda_handler.inferred_span = test_span
lambda_handler.make_inferred_span = False
Expand Down

0 comments on commit a2576a4

Please sign in to comment.