We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3537d4d commit abcf4c9Copy full SHA for abcf4c9
tests/DataMapper/Redis/RedisImplementationIntegrationTest.php
@@ -35,6 +35,7 @@ public static function setUpBeforeClass()
35
);
36
37
wait(call(function (Process $dbProcess) {
38
+ $startTime = time();
39
$dbProcess->start();
40
41
$stream = $dbProcess->getStdout();
@@ -43,7 +44,10 @@ public static function setUpBeforeClass()
43
44
while ($chunk = yield $stream->read()) {
45
$output .= $chunk;
46
- if (strstr($output, 'Ready to accept connections')) {
47
+ if (
48
+ stristr($output, 'Ready to accept connections')
49
+ || time() - $startTime > 3
50
+ ) {
51
break;
52
}
53
0 commit comments