From ac184a6fe3f8d7e17a6da2f472ffc578eb03d8e9 Mon Sep 17 00:00:00 2001 From: Bradley Schofield Date: Wed, 20 Jul 2022 13:43:18 +0100 Subject: [PATCH] Fix realtime and webhook tests --- tests/e2e/Services/Realtime/RealtimeConsoleClientTest.php | 2 +- tests/e2e/Services/Realtime/RealtimeCustomClientTest.php | 2 +- tests/e2e/Services/Webhooks/WebhooksCustomServerTest.php | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/e2e/Services/Realtime/RealtimeConsoleClientTest.php b/tests/e2e/Services/Realtime/RealtimeConsoleClientTest.php index 1112a230a1..63eda8d0d4 100644 --- a/tests/e2e/Services/Realtime/RealtimeConsoleClientTest.php +++ b/tests/e2e/Services/Realtime/RealtimeConsoleClientTest.php @@ -266,7 +266,7 @@ class RealtimeConsoleClientTest extends Scope ], ]); - $this->assertEquals($index['headers']['status-code'], 201); + $this->assertEquals($index['headers']['status-code'], 202); $indexKey = $index['body']['key']; $response = json_decode($client->receive(), true); diff --git a/tests/e2e/Services/Realtime/RealtimeCustomClientTest.php b/tests/e2e/Services/Realtime/RealtimeCustomClientTest.php index 5753f007f9..8d63a6ade0 100644 --- a/tests/e2e/Services/Realtime/RealtimeCustomClientTest.php +++ b/tests/e2e/Services/Realtime/RealtimeCustomClientTest.php @@ -1222,7 +1222,7 @@ class RealtimeCustomClientTest extends Scope $deploymentId = $deployment['body']['$id'] ?? ''; - $this->assertEquals($deployment['headers']['status-code'], 201); + $this->assertEquals($deployment['headers']['status-code'], 202); $this->assertNotEmpty($deployment['body']['$id']); // Wait for deployment to be built. diff --git a/tests/e2e/Services/Webhooks/WebhooksCustomServerTest.php b/tests/e2e/Services/Webhooks/WebhooksCustomServerTest.php index c60e57f6af..fd34c8bcb9 100644 --- a/tests/e2e/Services/Webhooks/WebhooksCustomServerTest.php +++ b/tests/e2e/Services/Webhooks/WebhooksCustomServerTest.php @@ -82,7 +82,7 @@ class WebhooksCustomServerTest extends Scope ]); $indexKey = $index['body']['key']; - $this->assertEquals($index['headers']['status-code'], 201); + $this->assertEquals($index['headers']['status-code'], 202); $this->assertEquals($index['body']['key'], 'fullname'); // wait for database worker to create index @@ -505,7 +505,7 @@ class WebhooksCustomServerTest extends Scope $id = $data['functionId'] ?? ''; $deploymentId = $deployment['body']['$id'] ?? ''; - $this->assertEquals($deployment['headers']['status-code'], 201); + $this->assertEquals($deployment['headers']['status-code'], 202); $this->assertNotEmpty($deployment['body']['$id']); $webhook = $this->getLastRequest(); @@ -595,7 +595,7 @@ class WebhooksCustomServerTest extends Scope $executionId = $execution['body']['$id'] ?? ''; - $this->assertEquals($execution['headers']['status-code'], 201); + $this->assertEquals($execution['headers']['status-code'], 202); $this->assertNotEmpty($execution['body']['$id']); $webhook = $this->getLastRequest();