t/Hydra/Plugin/gitea.t: explain why we loop a few times

Co-authored-by: Cole Helbling <cole.e.helbling@outlook.com>
This commit is contained in:
Graham Christensen
2022-02-10 12:02:29 -05:00
committed by GitHub
parent a1579007f4
commit 4f9aea9434

View File

@ -60,6 +60,9 @@ if (!defined($pid = fork())) {
kill('INT', $pid); kill('INT', $pid);
} }
# We expect $ctx{jobsdir}/server.py to create the file at $filename, but the time it
# takes to do so is non-deterministic. We need to give it _some_ time to hopefully
# settle -- but not too much that it drastically slows things down.
for my $i (1..10) { for my $i (1..10) {
if (! -f $filename) { if (! -f $filename) {
diag("$filename does not yet exist"); diag("$filename does not yet exist");