From c5d0d46693b58e5fecc3f87d19fdf272fd29e0ab Mon Sep 17 00:00:00 2001 From: Christian Schneider Date: Mon, 22 Apr 2024 18:30:34 +0200 Subject: Send notice to schneider@search.ch to check where chaning default to empty_on_fail=true would have an impact --- test/it_url.t | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test') diff --git a/test/it_url.t b/test/it_url.t index 01de74b..b141670 100755 --- a/test/it_url.t +++ b/test/it_url.t @@ -348,15 +348,15 @@ is(count($pages), 2, 'it_url::get_multi no additional array elements'); handle_server( is( - it_url::get("http://$host/maybe_error?chance=0"), + it_url::get(['url' => "http://$host/maybe_error?chance=0"]), "success" ), is( - it_url::get("http://$host/maybe_error?chance=100"), + it_url::get(['url' => "http://$host/maybe_error?chance=100", 'empty_on_fail' => false]), "failure" ), is( - it_url::get(['url' => "http://$host/maybe_error?chance=10", 'retries' => 10]), + it_url::get(['url' => "http://$host/maybe_error?chance=10", 'empty_on_fail' => true, 'retries' => 10]), "success", "Retry on sporadically failing url in ::get" ), -- cgit v1.2.3