summaryrefslogtreecommitdiffstats
path: root/redis-tests.patch
diff options
context:
space:
mode:
Diffstat (limited to 'redis-tests.patch')
-rw-r--r--redis-tests.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/redis-tests.patch b/redis-tests.patch
new file mode 100644
index 0000000..488ba09
--- /dev/null
+++ b/redis-tests.patch
@@ -0,0 +1,31 @@
+From cc1be32294a0b134e60be1476775e8d37dbf3f6a Mon Sep 17 00:00:00 2001
+From: Remi Collet <remi@remirepo.net>
+Date: Tue, 24 Sep 2024 14:47:04 +0200
+Subject: [PATCH] fix 2 tests with redis 6.2
+
+---
+ tests/RedisTest.php | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/tests/RedisTest.php b/tests/RedisTest.php
+index 6bf0655939..a33a062f0f 100644
+--- a/tests/RedisTest.php
++++ b/tests/RedisTest.php
+@@ -245,7 +245,7 @@ public function testBitcount() {
+ $this->redis->set('bitcountkey', hex2bin('10eb8939e68bfdb640260f0629f3'));
+ $this->assertEquals(1, $this->redis->bitcount('bitcountkey', 8, 8, false));
+
+- if ( ! $this->is_keydb) {
++ if ( ! $this->is_keydb && $this->minVersionCheck('7.0')) {
+ /* key, start, end, BIT */
+ $this->redis->set('bitcountkey', hex2bin('cd0e4c80f9e4590d888a10'));
+ $this->assertEquals(5, $this->redis->bitcount('bitcountkey', 0, 9, true));
+@@ -7625,7 +7625,7 @@ public function testCommand() {
+ $this->assertIsArray($commands);
+ $this->assertEquals(count($commands), $this->redis->command('count'));
+
+- if ( ! $this->is_keydb) {
++ if ( ! $this->is_keydb && $this->minVersionCheck('7.0')) {
+ $infos = $this->redis->command('info');
+ $this->assertIsArray($infos);
+ $this->assertEquals(count($infos), count($commands));