From 285d25223eeaca79df3b167ff3beb7a2134ebe95 Mon Sep 17 00:00:00 2001 From: Kharec Date: Mon, 5 Jan 2026 07:26:46 +0100 Subject: [PATCH] tests: run async for https url --- t/integration.t | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/t/integration.t b/t/integration.t index 9212daf..2ffbb97 100644 --- a/t/integration.t +++ b/t/integration.t @@ -148,15 +148,10 @@ subtest 'POST /api/v1/urls - Real validator network errors (async)' => sub { subtest 'POST /api/v1/urls - Real validator SSL certificate validation' => sub { my $res = post_shorten('https://www.example.com'); - if ( $res->{code} == 200 ) { - pass('HTTPS URL with valid SSL certificate accepted'); - } - elsif ( $res->{code} == 422 && $res->{error} =~ /SSL certificate/i ) { - diag( "SSL validation: " . $res->{error} ); - } - else { - diag( "SSL test skipped: " . $res->{error} ); - } + ok( + $res->{code} == 200 || $res->{code} == 400, + 'SSL validation runs async for HTTPS URL' + ); }; subtest 'POST /api/v1/urls - Real validator invalid URL format' => sub {