Fix failing tests

This commit is contained in:
Matej Bačo
2025-05-18 12:02:32 +02:00
parent 0e69929054
commit b228bdd9c7
2 changed files with 2 additions and 3 deletions
@@ -667,11 +667,11 @@ class Builds extends Action
// Enter output directory, if set
if (!empty($resource->getAttribute('outputDirectory', ''))) {
$listFilesCommand .= 'cd ' . \escapeshellarg($resource->getAttribute('outputDirectory', ''));
$listFilesCommand .= ' && cd ' . \escapeshellarg($resource->getAttribute('outputDirectory', ''));
}
// Print files, and end separation
$listFilesCommand .= 'find . -name \'node_modules\' -prune -o -type f -print && echo "{APPWRITE_DETECTION_SEPARATOR_END}"';
$listFilesCommand .= ' && find . -name \'node_modules\' -prune -o -type f -print && echo "{APPWRITE_DETECTION_SEPARATOR_END}"';
// Use SSR file listing
if (empty($command)) {
@@ -524,7 +524,6 @@ class SitesCustomServerTest extends Scope
$this->assertNotEmpty($deploymentId);
$site = $this->getSite($siteId);
\var_dump($site);
$this->assertEquals('200', $site['headers']['status-code']);
$this->assertEquals('static', $site['body']['adapter']);
$this->assertEquals('main.html', $site['body']['fallbackFile']);