Skip to content

Commit 342d6d1

Browse files
committed
tests: fixed CI
1 parent 1cf8f97 commit 342d6d1

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

t/170-proxy-ssl-cert.t

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,10 @@ repeat_each(3);
88
my $NginxBinary = $ENV{'TEST_NGINX_BINARY'} || 'nginx';
99
my $openssl_version = eval { `$NginxBinary -V 2>&1` };
1010

11-
if ($openssl_version =~ m/built with OpenSSL (0\S*|1\.0\S*|1\.1\.0\S*)/) {
12-
plan(skip_all => "too old OpenSSL, need 1.1.1, was $1");
13-
} elsif ($openssl_version =~ m/running with BoringSSL/) {
14-
plan(skip_all => "does not support BoringSSL");
15-
} elsif ($ENV{TEST_NGINX_USE_HTTP3}) {
16-
plan tests => repeat_each() * (blocks() * 6 + 6);
11+
if ($openssl_version =~ m/built with OpenSSL (0|1\.0\.(?:0|1[^\d]|2[a-d]).*)/) {
12+
plan(skip_all => "too old OpenSSL, need >= 1.0.2e, was $1");
1713
} else {
18-
plan tests => repeat_each() * (blocks() * 5 + 10);
14+
plan tests => repeat_each() * (blocks() * 5 + 17);
1915
}
2016

2117
$ENV{TEST_NGINX_HTML_DIR} ||= html_dir();

0 commit comments

Comments
 (0)