Skip to content

Commit

Permalink
modify test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
swananan committed Dec 17, 2023
1 parent 391639b commit 49391cc
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion t/166-ssl-client-hello.t
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,15 @@ use Test::Nginx::Socket::Lua;

repeat_each(3);

plan tests => repeat_each() * (blocks() * 6 + 8);
# All these tests need to have new openssl
my $NginxBinary = $ENV{'TEST_NGINX_BINARY'} || 'nginx';
my $openssl_version = eval { `$NginxBinary -V 2>&1` };

if ($openssl_version =~ m/built with OpenSSL (0\S*|1\.0\S*|1\.1\.0\S*)/) {
plan(skip_all => "too old OpenSSL, need 1.1.1, was $1");
} else {
plan tests => repeat_each() * (blocks() * 6 + 8);
}

$ENV{TEST_NGINX_HTML_DIR} ||= html_dir();
$ENV{TEST_NGINX_MEMCACHED_PORT} ||= 11211;
Expand Down

0 comments on commit 49391cc

Please sign in to comment.