Skip to content

Commit

Permalink
Fix deadlineMs for fake instance
Browse files Browse the repository at this point in the history
Previous code was in seconds, by this way -> getRemainingTimeInMillis was wrong and negative.
  • Loading branch information
stephpy authored May 29, 2023
1 parent f42ab63 commit d5cee16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Context/Context.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public static function fake(): self
{
return new self(
'fake-aws-request-id',
time() + 1000 * 60 * 5, // 5 minutes from now (in milliseconds)
(time() + (60 * 5)) * 1000, // 5 minutes from now (in milliseconds)
'fake-invoked-function-arn',
'fake-trace-id'
);
Expand Down

0 comments on commit d5cee16

Please sign in to comment.