<?php
-namespace Friendica\Test\Core\Lock;
+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()
{
- return new SemaphoreLockDriver();
+ $this->semaphoreLockDriver = new SemaphoreLockDriver();
+ return $this->semaphoreLockDriver;
+ }
+
+ public function tearDown()
+ {
+ $this->semaphoreLockDriver->releaseAll();
+ parent::tearDown();
+ }
+
+ function testLockTTL()
+ {
+ // Semaphore doesn't work with TTL
+ return true;
}
-}
\ No newline at end of file
+}