Skip to content

Commit cc1be32

Browse files
committed
fix 2 tests with redis 6.2
1 parent 0bae4bb commit cc1be32

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/RedisTest.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ public function testBitcount() {
245245
$this->redis->set('bitcountkey', hex2bin('10eb8939e68bfdb640260f0629f3'));
246246
$this->assertEquals(1, $this->redis->bitcount('bitcountkey', 8, 8, false));
247247

248-
if ( ! $this->is_keydb) {
248+
if ( ! $this->is_keydb && $this->minVersionCheck('7.0')) {
249249
/* key, start, end, BIT */
250250
$this->redis->set('bitcountkey', hex2bin('cd0e4c80f9e4590d888a10'));
251251
$this->assertEquals(5, $this->redis->bitcount('bitcountkey', 0, 9, true));
@@ -7625,7 +7625,7 @@ public function testCommand() {
76257625
$this->assertIsArray($commands);
76267626
$this->assertEquals(count($commands), $this->redis->command('count'));
76277627

7628-
if ( ! $this->is_keydb) {
7628+
if ( ! $this->is_keydb && $this->minVersionCheck('7.0')) {
76297629
$infos = $this->redis->command('info');
76307630
$this->assertIsArray($infos);
76317631
$this->assertEquals(count($infos), count($commands));

0 commit comments

Comments
 (0)