Skip to content

Commit c6e1774

Browse files
committed
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
1 parent 36b4898 commit c6e1774

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/unit/test_LambdaContext.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
class TestLambdaContext(unittest.TestCase):
66

77
def test_get_remaining_time_in_millis(self):
8-
context = LambdaContext('function_name',2000)
8+
context = LambdaContext('function_name', 2000)
99
time.sleep(.5)
10-
self.assertTrue(context.get_remaining_time_in_millis() < 2000)
10+
self.assertTrue(context.get_remaining_time_in_millis() < 2000000)
1111

1212

1313
if __name__ == '__main__':

0 commit comments

Comments
 (0)