Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpredis/phpredis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authormichael-grunder <michael.grunder@gmail.com>2019-06-16 21:44:49 +0300
committermichael-grunder <michael.grunder@gmail.com>2019-06-16 21:44:49 +0300
commit19e47b4b322c1befebf82aff4e17d28a1ec26037 (patch)
treeedca104fd3664cb6d68600a9dfec5078f9e09333 /tests
parent9a699e53087dc730212c86cfc7b44e8357f4fae3 (diff)
Revert to using PHP's time
Diffstat (limited to 'tests')
-rw-r--r--tests/RedisTest.php3
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');
}