mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Fix preview deicison-maker; speed-up tests
This commit is contained in:
@@ -794,9 +794,10 @@ class Builds extends Action
|
||||
|
||||
$config['sleep'] = 3000; // 3 seconds
|
||||
|
||||
// Makes tests much faster
|
||||
$isDevelopment = System::getEnv('_APP_ENV', 'development') === 'development';
|
||||
if ($isDevelopment) {
|
||||
$config['timeout'] = 10000; // 10 seconds
|
||||
$config['sleep'] = 0; // Override this when running Screenshot.php task
|
||||
}
|
||||
|
||||
$response = $client->fetch(
|
||||
|
||||
@@ -37,6 +37,8 @@ class Screenshot extends Action
|
||||
throw new \Exception("Template {$templateId} not found. Find correct ID in app/config/templates/site.php");
|
||||
}
|
||||
|
||||
Console::warning('Make sure to override $config[\'sleep\'] in Builds.php worker to high number, like 10000 (10 seconds)');
|
||||
|
||||
Console::info("Found: " . $template['name']);
|
||||
|
||||
$client = new Client();
|
||||
|
||||
Reference in New Issue
Block a user