X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=tests%2Fsrc%2FCore%2FLock%2FMemcachedCacheLockTest.php;h=f41bf992055417c3f474b505fbbcc0a122506a2c;hb=28864d8fdd032032938327ebd35ffe2d3d0de3b8;hp=85387239b73a0c6a78884347a8b826b8471d1165;hpb=0823f4d72d204f1ea5b22fff0637a8ef5107885b;p=friendica.git diff --git a/tests/src/Core/Lock/MemcachedCacheLockTest.php b/tests/src/Core/Lock/MemcachedCacheLockTest.php index 85387239b7..f41bf99205 100644 --- a/tests/src/Core/Lock/MemcachedCacheLockTest.php +++ b/tests/src/Core/Lock/MemcachedCacheLockTest.php @@ -1,10 +1,28 @@ . + * + */ namespace Friendica\Test\src\Core\Lock; use Friendica\Core\Cache\MemcachedCache; -use Friendica\Core\Config\Configuration; +use Friendica\Core\Config\IConfig; use Friendica\Core\Lock\CacheLock; use Psr\Log\NullLogger; @@ -16,14 +34,15 @@ class MemcachedCacheLockTest extends LockTest { protected function getInstance() { - $configMock = \Mockery::mock(Configuration::class); + $configMock = \Mockery::mock(IConfig::class); $host = $_SERVER['MEMCACHED_HOST'] ?? 'localhost'; + $port = $_SERVER['MEMCACHED_PORT'] ?? '11211'; $configMock ->shouldReceive('get') ->with('system', 'memcached_hosts') - ->andReturn([0 => $host . ', 11211']); + ->andReturn([0 => $host . ', ' . $port]); $logger = new NullLogger(); @@ -38,4 +57,14 @@ class MemcachedCacheLockTest extends LockTest return $lock; } + + public function testGetLocks() + { + $this->markTestIncomplete('Race condition because of too fast getLocks() which uses a workaround'); + } + + public function testGetLocksWithPrefix() + { + $this->markTestIncomplete('Race condition because of too fast getLocks() which uses a workaround'); + } }