diff options
author | michael-grunder <michael.grunder@gmail.com> | 2019-06-16 21:44:49 +0300 |
---|---|---|
committer | michael-grunder <michael.grunder@gmail.com> | 2019-06-16 21:44:49 +0300 |
commit | 19e47b4b322c1befebf82aff4e17d28a1ec26037 (patch) | |
tree | edca104fd3664cb6d68600a9dfec5078f9e09333 /tests | |
parent | 9a699e53087dc730212c86cfc7b44e8357f4fae3 (diff) |
Revert to using PHP's time
Diffstat (limited to 'tests')
-rw-r--r-- | tests/RedisTest.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/RedisTest.php b/tests/RedisTest.php index 8ec32467..48ae46bb 100644 --- a/tests/RedisTest.php +++ b/tests/RedisTest.php @@ -472,9 +472,8 @@ class Redis_Test extends TestSuite for ($i = 0; !$success && $i < 3; $i++) { $this->redis->del('key'); - $time = $this->redis->time(); $this->redis->set('key', 'value'); - $this->redis->expireAt('key', $time[0] + 1); + $this->redis->expireAt('key', time() + 1); usleep(1500000); $success = FALSE === $this->redis->get('key'); } |