mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Fix storage error
This commit is contained in:
@@ -215,7 +215,12 @@ class StorageCustomServerTest extends Scope
|
||||
$this->getHeaders()
|
||||
)
|
||||
);
|
||||
$this->assertEquals(400, $response['headers']['status-code']);
|
||||
// MongoDB allows longer IDs than MariaDB, so it returns 404 (not found) instead of 400 (validation error)
|
||||
if ($this->isMongoDB()) {
|
||||
$this->assertEquals(404, $response['headers']['status-code']);
|
||||
} else {
|
||||
$this->assertEquals(400, $response['headers']['status-code']);
|
||||
}
|
||||
|
||||
return $data;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user