File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed
Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -102,9 +102,9 @@ public function startTemporalServer(
102102 $ this ->temporalServerProcess ->setTimeout ($ commandTimeout );
103103 $ this ->temporalServerProcess ->start ();
104104
105- $ limit = 1_000_000 ;
106- while (!$ this ->temporalServerProcess ->isRunning () && $ limit > 0 ) {
107- \usleep ($ limit -= 1000 );
105+ $ deadline = \microtime ( true ) + 1.2 ;
106+ while (!$ this ->temporalServerProcess ->isRunning () && \microtime ( true ) < $ deadline ) {
107+ \usleep (10_000 );
108108 }
109109
110110 if (!$ this ->temporalServerProcess ->isRunning ()) {
@@ -132,10 +132,7 @@ public function startTemporalTestServer(int $commandTimeout = 10): void
132132 $ this ->temporalTestServerProcess ->setTimeout ($ commandTimeout );
133133 $ this ->temporalTestServerProcess ->start ();
134134
135- $ limit = 1_000_000 ;
136- while (!$ this ->temporalTestServerProcess ->isRunning () && $ limit > 0 ) {
137- \usleep ($ limit -= 1000 );
138- }
135+ \sleep (1 );
139136
140137 if (!$ this ->temporalTestServerProcess ->isRunning ()) {
141138 $ this ->output ->writeln ('<error>error</error> ' );
You can’t perform that action at this time.
0 commit comments