Explorar o código

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

Daniele Alessandri %!s(int64=13) %!d(string=hai) anos
pai
achega
d784838447
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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()