mirror of
https://github.com/friendica/friendica
synced 2025-04-23 21:50:10 +00:00
Replace Lock::release() with DI::lock()->release() and remove Core\Lock
This commit is contained in:
parent
634e657d23
commit
31457b8566
14 changed files with 33 additions and 74 deletions
|
@ -55,7 +55,7 @@ class SemaphoreLockTest extends LockTest
|
|||
touch($file);
|
||||
|
||||
$this->assertTrue(file_exists($file));
|
||||
$this->assertFalse($this->instance->releaseLock('test', false));
|
||||
$this->assertFalse($this->instance->release('test', false));
|
||||
$this->assertTrue(file_exists($file));
|
||||
}
|
||||
|
||||
|
@ -72,7 +72,7 @@ class SemaphoreLockTest extends LockTest
|
|||
touch($file);
|
||||
|
||||
$this->assertTrue(file_exists($file));
|
||||
$this->assertFalse($this->instance->releaseLock('test', true));
|
||||
$this->assertFalse($this->instance->release('test', true));
|
||||
$this->assertTrue(file_exists($file));
|
||||
}
|
||||
|
||||
|
@ -87,6 +87,6 @@ class SemaphoreLockTest extends LockTest
|
|||
$this->assertTrue(file_exists($file));
|
||||
$this->assertTrue($this->instance->acquire('test'));
|
||||
$this->assertTrue($this->instance->isLocked('test'));
|
||||
$this->assertTrue($this->instance->releaseLock('test'));
|
||||
$this->assertTrue($this->instance->release('test'));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue