Partial revert "Add project log"

This partially reverts commit 8097f1607f.
This commit is contained in:
Jake Barnby
2025-01-24 01:43:25 +13:00
parent 8097f1607f
commit 1360c16f65
+8 -3
View File
@@ -711,7 +711,7 @@ class UsageTest extends Scope
$this->assertEquals('index.php', $response['body']['entrypoint']);
// Wait for deployment to build.
sleep(self::WAIT);
sleep(self::WAIT + 20);
$response = $this->client->call(
Client::METHOD_PATCH,
@@ -782,13 +782,18 @@ class UsageTest extends Scope
array_merge([
'content-type' => 'application/json',
'x-appwrite-project' => $this->getProject()['$id']
], $this->getHeaders())
], $this->getHeaders()),
[
'async' => true,
]
);
$this->assertEquals(200, $response['headers']['status-code']);
$this->assertEquals(202, $response['headers']['status-code']);
$this->assertNotEmpty($response['body']['$id']);
$this->assertEquals($functionId, $response['body']['functionId']);
sleep(self::WAIT);
$response = $this->client->call(
Client::METHOD_GET,
'/functions/' . $functionId . '/executions/' . $response['body']['$id'],