aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorSimon L <szaimen@e.mail.de>2022-12-21 20:01:19 +0100
committerSimon L <szaimen@e.mail.de>2022-12-22 09:52:46 +0100
commitbfb3b2af9f07f39b175ee6321f939a8d778499c1 (patch)
tree400484172733f020f7d5336983799c14021e44d3 /tests
parentc1a99ca58ffdcf37c7f9aaffdb336de45de98231 (diff)
downloadnextcloud-server-bfb3b2af9f07f39b175ee6321f939a8d778499c1.tar.gz
nextcloud-server-bfb3b2af9f07f39b175ee6321f939a8d778499c1.zip
increase preview_max_memory and make it easier to debug
Signed-off-by: Simon L <szaimen@e.mail.de>
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/ImageTest.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/lib/ImageTest.php b/tests/lib/ImageTest.php
index 2a753b01550..f4da0275c2d 100644
--- a/tests/lib/ImageTest.php
+++ b/tests/lib/ImageTest.php
@@ -144,8 +144,8 @@ class ImageTest extends \Test\TestCase {
->willReturn(null);
$config->expects($this->once())
->method('getSystemValueInt')
- ->with('preview_max_memory', 128)
- ->willReturn(128);
+ ->with('preview_max_memory', 256)
+ ->willReturn(256);
$img = new \OC_Image(null, null, $config);
$img->loadFromFile(OC::$SERVERROOT.'/tests/data/testimage.jpg');
$raw = imagecreatefromstring(file_get_contents(OC::$SERVERROOT.'/tests/data/testimage.jpg'));