diff options
author | Robin Appelman <robin@icewind.nl> | 2023-04-17 16:18:48 +0200 |
---|---|---|
committer | backportbot-nextcloud[bot] <backportbot-nextcloud[bot]@users.noreply.github.com> | 2023-05-31 07:13:23 +0000 |
commit | 76013b928735e720c0fae380a73739a85755a438 (patch) | |
tree | ed35e4baf70510f7a3c5d330d08c06894570259f /tests | |
parent | f5895faafafd062601f43e199eb36bfa52f7c532 (diff) | |
download | nextcloud-server-76013b928735e720c0fae380a73739a85755a438.tar.gz nextcloud-server-76013b928735e720c0fae380a73739a85755a438.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]); + } + } } |