From e709a175081181b0e57756677b216ebf71e2d482 Mon Sep 17 00:00:00 2001 From: Graham Christensen Date: Thu, 10 Feb 2022 11:01:09 -0500 Subject: [PATCH] gitea.t: try opening the file a few times --- t/Hydra/Plugin/gitea.t | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/t/Hydra/Plugin/gitea.t b/t/Hydra/Plugin/gitea.t index 27fe1173..1f8da349 100644 --- a/t/Hydra/Plugin/gitea.t +++ b/t/Hydra/Plugin/gitea.t @@ -60,6 +60,13 @@ if (!defined($pid = fork())) { kill('INT', $pid); } +for my $i (1..10) { + if (! -f $filename) { + diag("$filename does not yet exist"); + sleep(1); + } +} + open(my $fh, "<", $filename) or die ("Can't open(): $!\n"); my $i = 0; my $uri = <$fh>;