Replaced time() with uniqid() to make sure the file name is unique
The cache isn't cleared properly because unlink() doesn't remove the cache entry which caused side-effects when reusing the same file name (which randomly happens when time() returns the same value) This fix first makes sure the unit tests don't fail any more. The unlink() case with the cache will be investigated separately.
Showing
- apps/files_encryption/tests/crypt.php 17 additions, 17 deletionsapps/files_encryption/tests/crypt.php
- apps/files_encryption/tests/keymanager.php 2 additions, 2 deletionsapps/files_encryption/tests/keymanager.php
- apps/files_encryption/tests/proxy.php 1 addition, 1 deletionapps/files_encryption/tests/proxy.php
- apps/files_encryption/tests/stream.php 6 additions, 6 deletionsapps/files_encryption/tests/stream.php
- apps/files_encryption/tests/trashbin.php 2 additions, 2 deletionsapps/files_encryption/tests/trashbin.php
- apps/files_encryption/tests/util.php 6 additions, 6 deletionsapps/files_encryption/tests/util.php
- apps/files_encryption/tests/webdav.php 1 addition, 1 deletionapps/files_encryption/tests/webdav.php
Loading
Please register or sign in to comment