mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 00:32:29 -04:00
Merge pull request #23808 from owncloud/test-lock-with-strange-filename
Test locking with strange filename
This commit is contained in:
commit
d739af3d4a
1 changed files with 2 additions and 0 deletions
|
|
@ -112,12 +112,14 @@ abstract class LockingProvider extends TestCase {
|
|||
$this->instance->acquireLock('foo', ILockingProvider::LOCK_SHARED);
|
||||
$this->instance->acquireLock('bar', ILockingProvider::LOCK_SHARED);
|
||||
$this->instance->acquireLock('asd', ILockingProvider::LOCK_EXCLUSIVE);
|
||||
$this->instance->acquireLock('fizz#A=23', ILockingProvider::LOCK_EXCLUSIVE);
|
||||
|
||||
$this->instance->releaseAll();
|
||||
|
||||
$this->assertFalse($this->instance->isLocked('foo', ILockingProvider::LOCK_SHARED));
|
||||
$this->assertFalse($this->instance->isLocked('bar', ILockingProvider::LOCK_SHARED));
|
||||
$this->assertFalse($this->instance->isLocked('asd', ILockingProvider::LOCK_EXCLUSIVE));
|
||||
$this->assertFalse($this->instance->isLocked('fizz#A=23', ILockingProvider::LOCK_EXCLUSIVE));
|
||||
}
|
||||
|
||||
public function testReleaseAllAfterChange() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue