From d5cee16e8d280780bd86b3b482cfa3b0e577fc70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20PY?= Date: Mon, 29 May 2023 14:00:32 +0200 Subject: [PATCH] Fix deadlineMs for fake instance Previous code was in seconds, by this way -> getRemainingTimeInMillis was wrong and negative. --- src/Context/Context.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Context/Context.php b/src/Context/Context.php index 19164caa5..f6c110f1d 100644 --- a/src/Context/Context.php +++ b/src/Context/Context.php @@ -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' );