summaryrefslogtreecommitdiffstats
path: root/redis-tests.patch
blob: 488ba0971bbc57f23f66ab0a725b13d56dcd2b7d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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));