Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@ include THIRD-PARTY-LICENSES
include requirements/base.txt
include requirements/pre-dev.txt
include requirements/dev.txt
include samcli/local/rapid/aws-lambda-rie
recursive-include samcli/lib/init/templates *
recursive-include samcli/lib/pipeline *
recursive-include samcli/lib *.json
recursive-include samcli/lib/generated_sample_events *.json
recursive-include samcli *
prune tests

global-exclude *.py[cod]
global-exclude *.DS_Store
4 changes: 2 additions & 2 deletions tests/unit/lib/telemetry/test_metric.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ def real_fn():
@patch("samcli.lib.telemetry.metric.Context")
def test_must_record_function_duration(self, ContextMock):
ContextMock.get_current_context.return_value = self.context_mock
sleep_duration = 0.01 # 10 millisecond
sleep_duration = 1 # 1 second

def real_fn():
time.sleep(sleep_duration)
Expand All @@ -222,7 +222,7 @@ def real_fn():
self.assertGreaterEqual(
metric.get_data()["duration"],
sleep_duration,
"Measured duration must be in milliseconds and " "greater than equal to the sleep duration",
"Measured duration must be in milliseconds and greater than equal to the sleep duration",
)

@patch("samcli.lib.telemetry.metric.Context")
Expand Down