File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed
Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -102,10 +102,7 @@ public function startTemporalServer(
102102 $ this ->temporalServerProcess ->setTimeout ($ commandTimeout );
103103 $ this ->temporalServerProcess ->start ();
104104
105- $ deadline = \microtime (true ) + 1.2 ;
106- while (!$ this ->temporalServerProcess ->isRunning () && \microtime (true ) < $ deadline ) {
107- \usleep (10_000 );
108- }
105+ \sleep (1 );
109106
110107 if (!$ this ->temporalServerProcess ->isRunning ()) {
111108 $ this ->output ->writeln ('<error>error</error> ' );
@@ -132,10 +129,7 @@ public function startTemporalTestServer(int $commandTimeout = 10): void
132129 $ this ->temporalTestServerProcess ->setTimeout ($ commandTimeout );
133130 $ this ->temporalTestServerProcess ->start ();
134131
135- $ deadline = \microtime (true ) + 1.2 ;
136- while (!$ this ->temporalTestServerProcess ->isRunning () && \microtime (true ) < $ deadline ) {
137- \usleep (10_000 );
138- }
132+ \sleep (1 );
139133
140134 if (!$ this ->temporalTestServerProcess ->isRunning ()) {
141135 $ this ->output ->writeln ('<error>error</error> ' );
You can’t perform that action at this time.
0 commit comments