]> git.mxchange.org Git - friendica.git/blobdiff - tests/src/Core/Lock/SemaphoreLockDriverTest.php
Lock TTL fix
[friendica.git] / tests / src / Core / Lock / SemaphoreLockDriverTest.php
index 56c96458f2a2e9110df3ddc2812c2d3c6ca9801d..422ab3221f072bd07bd936c344aca522008530d8 100644 (file)
@@ -2,25 +2,22 @@
 
 namespace Friendica\Test\src\Core\Lock;
 
-
 use Friendica\Core\Lock\SemaphoreLockDriver;
 
+/**
+ * @runTestsInSeparateProcesses
+ * @preserveGlobalState disabled
+ */
 class SemaphoreLockDriverTest extends LockTest
 {
-       /**
-        * @var \Friendica\Core\Lock\SemaphoreLockDriver
-        */
-       private $semaphoreLockDriver;
-
        protected function getInstance()
        {
-               $this->semaphoreLockDriver = new SemaphoreLockDriver();
-               return $this->semaphoreLockDriver;
+               return new SemaphoreLockDriver();
        }
 
-       public function tearDown()
+       function testLockTTL()
        {
-               $this->semaphoreLockDriver->releaseAll();
-               parent::tearDown();
+               // Semaphore doesn't work with TTL
+               return true;
        }
-}
\ No newline at end of file
+}