forked from lix-project/hydra
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:
parent
a1579007f4
commit
4f9aea9434
|
@ -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");
|
||||||
|
|
Loading…
Reference in a new issue