From 3c6e08540a3eb7db4a0d1c4537a87ee2cfee93eb Mon Sep 17 00:00:00 2001 From: Jake Barnby Date: Wed, 30 Aug 2023 02:10:50 -0400 Subject: [PATCH] Fix function test --- tests/e2e/Services/GraphQL/FunctionsClientTest.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/e2e/Services/GraphQL/FunctionsClientTest.php b/tests/e2e/Services/GraphQL/FunctionsClientTest.php index bb077f47fe..363f7a0fb1 100644 --- a/tests/e2e/Services/GraphQL/FunctionsClientTest.php +++ b/tests/e2e/Services/GraphQL/FunctionsClientTest.php @@ -121,10 +121,11 @@ class FunctionsClientTest extends Scope ]; while (true) { - $deployment = $this->client->call(Client::METHOD_POST, '/graphql', \array_merge([ + $deployment = $this->client->call(Client::METHOD_POST, '/graphql', [ 'content-type' => 'application/json', 'x-appwrite-project' => $projectId, - ], $this->getHeaders()), $gqlPayload); + 'x-appwrite-key' => $this->getProject()['apiKey'], + ], $gqlPayload); $this->assertIsArray($deployment['body']['data']); $this->assertArrayNotHasKey('errors', $deployment['body']);