X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=tests%2Fsrc%2FCore%2FLock%2FMemcacheCacheLockTest.php;h=9e111fbb925e074740c35f566c18ca995b2f5b00;hb=b8f85f0484fbb1f37e9cae2f4cf98f9349fda099;hp=4e7dd30340f7acbca7d983657fb5ac4ea6fd9567;hpb=d5dd12b8f8bc7d08813fee3e22831daf45c9052d;p=friendica.git diff --git a/tests/src/Core/Lock/MemcacheCacheLockTest.php b/tests/src/Core/Lock/MemcacheCacheLockTest.php index 4e7dd30340..9e111fbb92 100644 --- a/tests/src/Core/Lock/MemcacheCacheLockTest.php +++ b/tests/src/Core/Lock/MemcacheCacheLockTest.php @@ -4,17 +4,18 @@ namespace Friendica\Test\src\Core\Lock; use Friendica\Core\Cache\MemcacheCache; -use Friendica\Core\Config\Configuration; +use Friendica\Core\Config\IConfiguration; use Friendica\Core\Lock\CacheLock; /** * @requires extension Memcache + * @group MEMCACHE */ class MemcacheCacheLockTest extends LockTest { protected function getInstance() { - $configMock = \Mockery::mock(Configuration::class); + $configMock = \Mockery::mock(IConfiguration::class); $host = $_SERVER['MEMCACHE_HOST'] ?? 'localhost'; @@ -38,4 +39,20 @@ class MemcacheCacheLockTest extends LockTest return $lock; } + + /** + * @small + */ + public function testGetLocks() + { + $this->markTestIncomplete('Race condition because of too fast getAllKeys() which uses a workaround'); + } + + /** + * @small + */ + public function testGetLocksWithPrefix() + { + $this->markTestIncomplete('Race condition because of too fast getAllKeys() which uses a workaround'); + } }