]> 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 cd4b9157334a1da5119e2adc9d889229ddd7e64d..422ab3221f072bd07bd936c344aca522008530d8 100644 (file)
@@ -2,26 +2,17 @@
 
 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;
-       }
-
-       public function tearDown()
-       {
-               $this->semaphoreLockDriver->releaseAll();
-               parent::tearDown();
+               return new SemaphoreLockDriver();
        }
 
        function testLockTTL()