mirror of
https://github.com/nextcloud/server.git
synced 2026-06-12 10:10:49 -04:00
chore(tests): Use /dev/shm as a tempdirectory
Should fix tests in phpunit-32bits Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
parent
b37044d484
commit
d8a6ab54e7
2 changed files with 2 additions and 1 deletions
|
|
@ -44,7 +44,7 @@ class TempManagerTest extends \Test\TestCase {
|
|||
$config = $this->createMock(IConfig::class);
|
||||
$config->method('getSystemValue')
|
||||
->with('tempdirectory', null)
|
||||
->willReturn('/tmp');
|
||||
->willReturn('/dev/shm');
|
||||
}
|
||||
$iniGetWrapper = $this->createMock(IniGetWrapper::class);
|
||||
$manager = new TempManager($logger, $config, $iniGetWrapper);
|
||||
|
|
|
|||
|
|
@ -16,6 +16,7 @@ $CONFIG = [
|
|||
'writable' => true,
|
||||
],
|
||||
],
|
||||
'tempdirectory' => '/dev/shm',
|
||||
];
|
||||
|
||||
if (is_dir(OC::$SERVERROOT . '/apps2')) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue