Browse Source

[test] Sleep one second to give BGSAVE the time to complete.

Daniele Alessandri 13 years ago
parent
commit
d784838447
1 changed files with 1 additions and 0 deletions
  1. 1 0
      test/RedisCommandsTest.php

+ 1 - 0
test/RedisCommandsTest.php

@@ -2166,6 +2166,7 @@ class RedisCommandTestSuite extends PHPUnit_Framework_TestCase
     function testBackgroundSave()
     {
         $this->assertTrue($this->redis->bgsave());
+        sleep(1);
     }
 
     function testBackgroundRewriteAppendOnlyFile()