Skip to content

Commit d08368c

Browse files
committed
fix: revert dc9c0c5
1 parent 7c26c22 commit d08368c

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

testing/src/Environment.php

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff 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>');

0 commit comments

Comments
 (0)