From 2885120f5f4b18e5fb2098e1216d3a7ddf869a2c Mon Sep 17 00:00:00 2001 From: Sven Nierlein Date: Fri, 20 Sep 2024 11:18:07 +0200 Subject: [PATCH] tests: fix timeout error because blank file was not found in case the test was started from a t/xt/... folder --- t/TestUtils.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/TestUtils.pm b/t/TestUtils.pm index 5e152120c..83e709af8 100644 --- a/t/TestUtils.pm +++ b/t/TestUtils.pm @@ -1279,7 +1279,7 @@ sub js_init { tab => 'current', launch_arg => ["--password-store=basic", "--remote-allow-origins=*"], ); - $mech->get_local("./data/blank.html"); + $mech->get_local(-f "./data/blank.html" ? "./data/blank.html" : "../../data/blank.html"); $mech->clear_js_errors(); my $console = $mech->add_listener('Runtime.consoleAPICalled', sub {