diff options
author | Robin Appelman <robin@icewind.nl> | 2023-04-17 16:18:48 +0200 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2023-04-17 16:18:48 +0200 |
commit | 0375c9866c12b9698e60ac021aae7de591dc7d57 (patch) | |
tree | 1bddad24cefa8ff00082faa07a86e026b6ec384c /tests | |
parent | 39e805fffadeb773bb186d695cf389cc0736a0f4 (diff) | |
download | nextcloud-server-0375c9866c12b9698e60ac021aae7de591dc7d57.tar.gz nextcloud-server-0375c9866c12b9698e60ac021aae7de591dc7d57.zip |
add test to verify redis lua script hashes
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/Memcache/RedisTest.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/lib/Memcache/RedisTest.php b/tests/lib/Memcache/RedisTest.php index 276dbf3a550..9e40698ec06 100644 --- a/tests/lib/Memcache/RedisTest.php +++ b/tests/lib/Memcache/RedisTest.php @@ -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]); + } + } } |