File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed
src/Symfony/Component/Process Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -455,8 +455,8 @@ public function waitUntil(callable $callback)
455
455
$ wait = true ;
456
456
do {
457
457
$ this ->checkTimeout ();
458
- $ running = '\\' === DIRECTORY_SEPARATOR ? $ this ->isRunning () : $ this ->processPipes ->areOpen ();
459
- $ output = $ this ->processPipes ->readAndWrite ($ running , '\\' !== DIRECTORY_SEPARATOR || !$ running );
458
+ $ running = '\\' === \ DIRECTORY_SEPARATOR ? $ this ->isRunning () : $ this ->processPipes ->areOpen ();
459
+ $ output = $ this ->processPipes ->readAndWrite ($ running , '\\' !== \ DIRECTORY_SEPARATOR || !$ running );
460
460
461
461
foreach ($ output as $ type => $ data ) {
462
462
if (3 !== $ type ) {
Original file line number Diff line number Diff line change @@ -152,7 +152,13 @@ public function testWaitUntilSpecificOutput()
152
152
$ p ->stop ();
153
153
154
154
$ this ->assertEquals ("First iteration output \nSecond iteration output \nOne more iteration output \n" , $ completeOutput );
155
- $ this ->assertLessThan (2 , microtime (true ) - $ start );
155
+
156
+ if ('\\' === \DIRECTORY_SEPARATOR ) {
157
+ // Windows is slower
158
+ $ this ->assertLessThan (15 , microtime (true ) - $ start );
159
+ } else {
160
+ $ this ->assertLessThan (2 , microtime (true ) - $ start );
161
+ }
156
162
}
157
163
158
164
public function testAllOutputIsActuallyReadOnTermination ()
You can’t perform that action at this time.
0 commit comments