Skip to content

Commit

Permalink
chore: round float to int microseconds for usleep
Browse files Browse the repository at this point in the history
  • Loading branch information
YOU54F committed Jul 14, 2023
1 parent 6a2ed36 commit 671fff5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PhpPact/Standalone/MockService/MockServer.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ private function verifyHealthCheck(): bool
try {
return $service->healthCheck();
} catch (ConnectionException $e) {
\usleep(round($retrySec * 1000000));
\usleep(intval(round($retrySec * 1000000)));
}
} while ($tries <= $maxTries);

Expand Down

0 comments on commit 671fff5

Please sign in to comment.