CacheLockDriverTest Fixings

- Changing test behaviour
This commit is contained in:
Philipp Holzer 2018-09-05 22:16:23 +02:00
parent 01451f788f
commit f148dcabc4
No known key found for this signature in database
GPG key ID: 58160D7D6AF942B6
6 changed files with 31 additions and 80 deletions

View file

@ -2,26 +2,13 @@
namespace Friendica\Test\src\Core\Lock;
use Friendica\Core\Lock\SemaphoreLockDriver;
class SemaphoreLockDriverTest extends LockTest
{
/**
* @var \Friendica\Core\Lock\SemaphoreLockDriver
*/
private $semaphoreLockDriver;
protected function getInstance()
{
$this->semaphoreLockDriver = new SemaphoreLockDriver();
return $this->semaphoreLockDriver;
}
public function tearDown()
{
$this->semaphoreLockDriver->releaseAll();
parent::tearDown();
return new SemaphoreLockDriver();
}
function testLockTTL()