Fix storage error

This commit is contained in:
Jake Barnby
2025-10-01 12:31:02 +13:00
parent f3460db369
commit 9e837c2eb9
@@ -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;
}