Skip to content

Commit 48b3e6b

Browse files
committed
Merge branch 'hotfix/ttl-response-type' into develop
2 parents e4842cd + 90bdf9e commit 48b3e6b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/TestRedis.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2394,8 +2394,9 @@ protected function sequence($mode) {
23942394
->expireAt('key', '0000')
23952395
->exec();
23962396
$this->assertTrue(is_array($ret));
2397-
$i = 0;
2398-
$this->assertTrue($ret[$i++] == -1);
2397+
$i = 0;
2398+
$ttl = $ret[$i++];
2399+
$this->assertTrue($ttl === -1 || $ttl === -2);
23992400
$this->assertTrue($ret[$i++] === array('val1', 'valX', FALSE)); // mget
24002401
$this->assertTrue($ret[$i++] === TRUE); // mset
24012402
$this->assertTrue($ret[$i++] === TRUE); // set

0 commit comments

Comments
 (0)