1
0
Fork 0
mirror of synced 2024-09-30 17:26:48 +13:00

Merge pull request #6053 from appwrite/feat-git-integration-no-hook

Disable swoole curl hook
This commit is contained in:
Jake Barnby 2023-08-29 13:44:27 -04:00 committed by GitHub
commit 860d6854b1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 0 additions and 6 deletions

View file

@ -20,13 +20,10 @@ use Utopia\Database\Database;
use Utopia\Database\Document;
use Utopia\Swoole\Files;
use Appwrite\Utopia\Request;
use Swoole\Runtime;
use Utopia\Logger\Log;
use Utopia\Logger\Log\User;
use Utopia\Pools\Group;
Runtime::enableCoroutine(SWOOLE_HOOK_NATIVE_CURL);
$http = new Server("0.0.0.0", App::getEnv('PORT', 80));
$payloadSize = 6 * (1024 * 1024); // 6MB

View file

@ -544,7 +544,6 @@ class Response extends SwooleResponse
if ($rule['array']) {
if (!is_array($data[$key])) {
\var_dump($data);
throw new Exception($key . ' must be an array of type ' . $rule['type']);
}

View file

@ -166,8 +166,6 @@ class FunctionsServerTest extends Scope
'x-appwrite-project' => $projectId,
], $this->getHeaders()), $gqlPayload);
\var_dump($execution);
$this->assertIsArray($execution['body']['data']);
$this->assertArrayNotHasKey('errors', $execution['body']);