mirror of
https://github.com/nextcloud/server.git
synced 2026-06-10 17:23:59 -04:00
Merge pull request #11142 from owncloud/fix-windows
Resolves cache tests failing if the directory length is longer than 64
This commit is contained in:
commit
079ad18bce
1 changed files with 4 additions and 0 deletions
4
tests/lib/files/cache/cache.php
vendored
4
tests/lib/files/cache/cache.php
vendored
|
|
@ -336,6 +336,10 @@ class Cache extends \PHPUnit_Framework_TestCase {
|
|||
$storageId = $this->storage->getId();
|
||||
$data = array('size' => 1000, 'mtime' => 20, 'mimetype' => 'foo/file');
|
||||
$id = $this->cache->put('foo', $data);
|
||||
|
||||
if (strlen($storageId) > 64) {
|
||||
$storageId = md5($storageId);
|
||||
}
|
||||
$this->assertEquals(array($storageId, 'foo'), \OC\Files\Cache\Cache::getById($id));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue