Skip to content

Commit

Permalink
30 sec maximum wait time for all tests to finish upon report request
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcelBolten committed Nov 29, 2023
1 parent b31054a commit 580cbd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion c3.php
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ function __c3_factory($filename, $lock = false)
// wait until serialized coverage data of all tests is written to file
$blockfilename = realpath(C3_CODECOVERAGE_MEDIATE_STORAGE) . DIRECTORY_SEPARATOR . 'block_report';
if (file_exists($blockfilename) && filesize($blockfilename) !== 0) {
$retries = 10;
$retries = 120; // 30 sec total
while (file_get_contents($blockfilename) !== '0' && --$retries >= 0) {
usleep(250000); // 0.25 sec
}
Expand Down

0 comments on commit 580cbd2

Please sign in to comment.