X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=tests%2Fsrc%2FCore%2FLock%2FMemcacheCacheLockTest.php;h=8008cb0eed605012a63cbb7c21b8790d4049a27d;hb=0e05ff68686270d87447c570e28543a5bcc7e755;hp=cebe246c1926cbec4014acbebefbc7e3dd73f871;hpb=0823f4d72d204f1ea5b22fff0637a8ef5107885b;p=friendica.git diff --git a/tests/src/Core/Lock/MemcacheCacheLockTest.php b/tests/src/Core/Lock/MemcacheCacheLockTest.php index cebe246c19..8008cb0eed 100644 --- a/tests/src/Core/Lock/MemcacheCacheLockTest.php +++ b/tests/src/Core/Lock/MemcacheCacheLockTest.php @@ -1,10 +1,28 @@ . + * + */ namespace Friendica\Test\src\Core\Lock; use Friendica\Core\Cache\MemcacheCache; -use Friendica\Core\Config\Configuration; +use Friendica\Core\Config\IConfig; use Friendica\Core\Lock\CacheLock; /** @@ -15,7 +33,7 @@ class MemcacheCacheLockTest extends LockTest { protected function getInstance() { - $configMock = \Mockery::mock(Configuration::class); + $configMock = \Mockery::mock(IConfig::class); $host = $_SERVER['MEMCACHE_HOST'] ?? 'localhost'; @@ -39,4 +57,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'); + } }