Skip to content

Commit

Permalink
tests: fix timeout error because blank file was not found
Browse files Browse the repository at this point in the history
in case the test was started from a t/xt/... folder
  • Loading branch information
sni committed Sep 20, 2024
1 parent 8652867 commit 2885120
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion t/TestUtils.pm
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 2885120

Please sign in to comment.