Skip to content

Commit d8a6ab5

Browse files
committed
chore(tests): Use /dev/shm as a tempdirectory
Should fix tests in phpunit-32bits Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
1 parent b37044d commit d8a6ab5

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

tests/lib/TempManagerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ protected function getManager(?LoggerInterface $logger = null, ?IConfig $config
4444
$config = $this->createMock(IConfig::class);
4545
$config->method('getSystemValue')
4646
->with('tempdirectory', null)
47-
->willReturn('/tmp');
47+
->willReturn('/dev/shm');
4848
}
4949
$iniGetWrapper = $this->createMock(IniGetWrapper::class);
5050
$manager = new TempManager($logger, $config, $iniGetWrapper);

tests/preseed-config.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
'writable' => true,
1717
],
1818
],
19+
'tempdirectory' => '/dev/shm',
1920
];
2021

2122
if (is_dir(OC::$SERVERROOT . '/apps2')) {

0 commit comments

Comments
 (0)