Skip to content

Commit 7c624f1

Browse files
committed
Update: 修复测试
1 parent 93d8f91 commit 7c624f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/Components/redis/tests/Tests/PhpRedisTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ public function testEvalScriptReadOnly(IRedisHandler $redis): void
176176
{
177177
$this->markTestSkipped(sprintf('PhpRedis version %s does not support read-only script', $redis->getClientVersion()));
178178
}
179-
if ($redis instanceof PredisClusterHandler && version_compare($redis->getClientVersion(), '2.2', '<'))
179+
if ($redis instanceof PredisClusterHandler && version_compare($redis->getClientVersion(), '2.2.2', '<='))
180180
{
181181
$this->markTestSkipped(sprintf('Predis (Cluster) version %s does not support read-only script', $redis->getClientVersion()));
182182
}

0 commit comments

Comments
 (0)