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:20 +0000 |
commit | 5b137a24988b9439626b5d3228fc613776605057 (patch) | |
tree | 826833fd0cf4408c60d606c451c8591dc411fe50 /tests/lib | |
parent | 8745f76bd0f3ca66cfe3b9c791e2df2dd5d33d1f (diff) | |
download | nextcloud-server-5b137a24988b9439626b5d3228fc613776605057.tar.gz nextcloud-server-5b137a24988b9439626b5d3228fc613776605057.zip |
add test to verify redis lua script hashes
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'tests/lib')
-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]); + } + } } |