add test to verify redis lua script hashes

Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
Robin Appelman 2023-04-17 16:18:48 +02:00
parent 39e805fffa
commit 0375c9866c
No known key found for this signature in database
GPG key ID: 42B69D8A64526EFB

View file

@ -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]);
}
}
}