Compare commits

...
Author SHA1 Message Date
fogelito 499db3cf5e line 2024-06-20 15:46:21 +03:00
fogelito 6f200e8c7f isDevelopment 2024-06-20 15:39:01 +03:00
fogelito 34f74f82e6 Increase timeout text 2024-06-20 15:37:39 +03:00
2 changed files with 4 additions and 1 deletions
+1
View File
@@ -387,6 +387,7 @@ App::init()
->action(function (Request $request, Database $dbForProject) {
$timeout = \intval($request->getHeader('x-appwrite-timeout'));
// isDevelopment
if (!empty($timeout) && App::isDevelopment()) {
$dbForProject->setTimeout($timeout);
}
@@ -4754,6 +4754,8 @@ trait DatabasesBase
$this->assertEquals($longtext['headers']['status-code'], 202);
$text = file_get_contents(__DIR__ . '/../../../resources/longtext.txt');
for ($i = 0; $i < 1; $i++) {
$this->client->call(Client::METHOD_POST, '/databases/' . $data['databaseId'] . '/collections/' . $data['$id'] . '/documents', array_merge([
'content-type' => 'application/json',
@@ -4761,7 +4763,7 @@ trait DatabasesBase
], $this->getHeaders()), [
'documentId' => ID::unique(),
'data' => [
'longtext' => file_get_contents(__DIR__ . '/../../../resources/longtext.txt'),
'longtext' => $text . $text,
],
'permissions' => [
Permission::read(Role::user($this->getUser()['$id'])),