aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib
diff options
context:
space:
mode:
authorSimon L <szaimen@e.mail.de>2023-05-19 23:29:24 +0200
committerGitHub <noreply@github.com>2023-05-19 23:29:24 +0200
commit3d2d1c171ec435e1519c8319e3f141d7381cb4cb (patch)
tree3009874fc92ea97764d151741ca7b2b074ba4f15 /tests/lib
parent8cca865d8030e376316a022826563fc94e578ff4 (diff)
parentc6cee282b345842f30afc52478d7b30696bed29d (diff)
downloadnextcloud-server-3d2d1c171ec435e1519c8319e3f141d7381cb4cb.tar.gz
nextcloud-server-3d2d1c171ec435e1519c8319e3f141d7381cb4cb.zip
Merge pull request #37758 from nextcloud/redis-atomic
redis: use atomic operations everywhere
Diffstat (limited to 'tests/lib')
-rw-r--r--tests/lib/Memcache/RedisTest.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/lib/Memcache/RedisTest.php b/tests/lib/Memcache/RedisTest.php
index 276dbf3a550..b94b69a5e6a 100644
--- a/tests/lib/Memcache/RedisTest.php
+++ b/tests/lib/Memcache/RedisTest.php
@@ -56,4 +56,10 @@ class RedisTest extends Cache {
parent::setUp();
$this->instance = new \OC\Memcache\Redis($this->getUniqueID());
}
+
+ public function testScriptHashes() {
+ foreach (\OC\Memcache\Redis::LUA_SCRIPTS as $script) {
+ $this->assertEquals(sha1($script[0]), $script[1]);
+ }
+ }
}