From 604396a029ed7d6c9739176eb3966ddfc470197e Mon Sep 17 00:00:00 2001 From: Jake Barnby Date: Mon, 18 Jul 2022 22:35:34 +1200 Subject: [PATCH] Increase function deployment sleep time to reduce test flakiness --- tests/e2e/Services/GraphQL/GraphQLFunctionsClientTest.php | 2 +- tests/e2e/Services/GraphQL/GraphQLFunctionsServerTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/e2e/Services/GraphQL/GraphQLFunctionsClientTest.php b/tests/e2e/Services/GraphQL/GraphQLFunctionsClientTest.php index 651cd9b5bd..b465b597d4 100644 --- a/tests/e2e/Services/GraphQL/GraphQLFunctionsClientTest.php +++ b/tests/e2e/Services/GraphQL/GraphQLFunctionsClientTest.php @@ -80,7 +80,7 @@ class GraphQLFunctionsClientTest extends Scope $this->assertIsArray($deployment['body']['data']); $this->assertArrayNotHasKey('errors', $deployment['body']); - sleep(10); + sleep(15); return $deployment['body']['data']['functionsCreateDeployment']; } diff --git a/tests/e2e/Services/GraphQL/GraphQLFunctionsServerTest.php b/tests/e2e/Services/GraphQL/GraphQLFunctionsServerTest.php index d53b73923a..a527a2043d 100644 --- a/tests/e2e/Services/GraphQL/GraphQLFunctionsServerTest.php +++ b/tests/e2e/Services/GraphQL/GraphQLFunctionsServerTest.php @@ -79,7 +79,7 @@ class GraphQLFunctionsServerTest extends Scope $this->assertIsArray($deployment['body']['data']); $this->assertArrayNotHasKey('errors', $deployment['body']); - sleep(10); + sleep(15); return $deployment['body']['data']['functionsCreateDeployment']; }