From 80f37ef1e41ca537aabd29ae808568bc37748477 Mon Sep 17 00:00:00 2001 From: fogelito Date: Wed, 6 Aug 2025 09:47:11 +0300 Subject: [PATCH] Move $executionId --- tests/e2e/Services/FunctionsSchedule/FunctionsScheduleTest.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/e2e/Services/FunctionsSchedule/FunctionsScheduleTest.php b/tests/e2e/Services/FunctionsSchedule/FunctionsScheduleTest.php index c3dd2c7fc8..1e681078e0 100644 --- a/tests/e2e/Services/FunctionsSchedule/FunctionsScheduleTest.php +++ b/tests/e2e/Services/FunctionsSchedule/FunctionsScheduleTest.php @@ -112,7 +112,6 @@ class FunctionsScheduleTest extends Scope ] ] ); - $executionId = $execution['body']['$id']; $this->assertEquals(202, $execution['headers']['status-code']); $this->assertEquals('scheduled', $execution['body']['status']); @@ -120,6 +119,8 @@ class FunctionsScheduleTest extends Scope $this->assertEquals('/custom-path', $execution['body']['requestPath']); $this->assertCount(0, $execution['body']['requestHeaders']); + $executionId = $execution['body']['$id']; + \sleep(120); $this->assertEventually(function () use ($functionId, $executionId) {