From 4f9aea943478780d6a7d71c549d44d1e1413d560 Mon Sep 17 00:00:00 2001 From: Graham Christensen Date: Thu, 10 Feb 2022 12:02:29 -0500 Subject: [PATCH] t/Hydra/Plugin/gitea.t: explain why we loop a few times Co-authored-by: Cole Helbling --- t/Hydra/Plugin/gitea.t | 3 +++ 1 file changed, 3 insertions(+) diff --git a/t/Hydra/Plugin/gitea.t b/t/Hydra/Plugin/gitea.t index 1f8da349..d84c8f57 100644 --- a/t/Hydra/Plugin/gitea.t +++ b/t/Hydra/Plugin/gitea.t @@ -60,6 +60,9 @@ if (!defined($pid = fork())) { 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) { if (! -f $filename) { diag("$filename does not yet exist");