Skip to content
This repository was archived by the owner on Mar 15, 2026. It is now read-only.
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Fix second/millisecond conversion issue in test case
The test for the `get_remaining_time_in_millis` method was
evaluating the output against a count in seconds, not milliseconds.
This corrects the issue to allow the test suite to pass
  • Loading branch information
mwbenowitz committed Apr 30, 2019
commit c6e1774c8c8d9b41509e183df2177f32427274df
4 changes: 2 additions & 2 deletions tests/unit/test_LambdaContext.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
class TestLambdaContext(unittest.TestCase):

def test_get_remaining_time_in_millis(self):
context = LambdaContext('function_name',2000)
context = LambdaContext('function_name', 2000)
time.sleep(.5)
self.assertTrue(context.get_remaining_time_in_millis() < 2000)
self.assertTrue(context.get_remaining_time_in_millis() < 2000000)


if __name__ == '__main__':
Expand Down