From 85d13bf801f0733fa30d2fdcf2ce382949aff371 Mon Sep 17 00:00:00 2001 From: Torsten Dittmann Date: Wed, 24 Mar 2021 17:20:06 +0100 Subject: [PATCH] fix tests --- tests/e2e/Services/Realtime/RealtimeBase.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tests/e2e/Services/Realtime/RealtimeBase.php b/tests/e2e/Services/Realtime/RealtimeBase.php index 3af7de1517..b9942dd8d6 100644 --- a/tests/e2e/Services/Realtime/RealtimeBase.php +++ b/tests/e2e/Services/Realtime/RealtimeBase.php @@ -22,7 +22,7 @@ trait RealtimeBase ]; return new WebSocketClient('ws://appwrite-traefik/v1/realtime?' . http_build_query($query), [ 'headers' => $headers, - 'timeout' => 5, + 'timeout' => 10, ]); } @@ -659,9 +659,8 @@ trait RealtimeBase $execution = $this->client->call(Client::METHOD_POST, '/functions/'.$functionId.'/executions', array_merge([ 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - 'x-appwrite-key' => $this->getProject()['apiKey'] - ]), []); + 'x-appwrite-project' => $this->getProject()['$id'] + ], $this->getHeaders()), []); $this->assertEquals($execution['headers']['status-code'], 201); $this->assertNotEmpty($execution['body']['$id']);