mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 08:44:07 -04:00
add test to verify redis lua script hashes
Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
parent
39e805fffa
commit
0375c9866c
1 changed files with 8 additions and 0 deletions
|
|
@ -9,6 +9,8 @@
|
|||
|
||||
namespace Test\Memcache;
|
||||
|
||||
use const OC\Memcache\LUA_SCRIPTS;
|
||||
|
||||
/**
|
||||
* @group Memcache
|
||||
* @group Redis
|
||||
|
|
@ -56,4 +58,10 @@ class RedisTest extends Cache {
|
|||
parent::setUp();
|
||||
$this->instance = new \OC\Memcache\Redis($this->getUniqueID());
|
||||
}
|
||||
|
||||
public function testScriptHashes() {
|
||||
foreach (LUA_SCRIPTS as $script) {
|
||||
$this->assertEquals(sha1($script[0]), $script[1]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue