Skip to content

Commit

Permalink
Update: 调整测试
Browse files Browse the repository at this point in the history
  • Loading branch information
NHZEX committed Mar 29, 2024
1 parent 6f7c502 commit 20d4050
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
8 changes: 0 additions & 8 deletions doc/components/redis/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,11 +153,3 @@ return [
| user:{1000}:roles | 1000 |
| foo{}{bar} | foo{}{bar} |
| foo{bar}{zap} | bar |

## TODO

- [ ] 支持资源URL 'tcp://192.168.0.222?timeout=60&db=1;tcp://192.168.0.222', 'unix:///var/run/redis/redis-server.sock?db=1'
- [ ] 支持 ACL 鉴权
- [ ] Sentinel 模式实现
- [ ] 完善的传参验证
- [ ] 多客户端测试(swoole, queue, amqp, rate-limit)
4 changes: 4 additions & 0 deletions src/Components/redis/tests/Tests/PhpRedisTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,10 @@ public function testEvalScriptClass(IRedisHandler $redis): void
#[Depends('testGetDrive')]
public function testEvalScriptReadOnly(IRedisHandler $redis): void
{
if (version_compare($redis->getServerVersion(), '7.0', '<')) {
$this->markTestSkipped(sprintf('Redis version %s does not support read-only script', $redis->getServerVersion()));
}

$this->flushLuaScript($redis);

$unique = bin2hex(random_bytes(16));
Expand Down

0 comments on commit 20d4050

Please sign in to comment.