Skip to content

Commit fc5589d

Browse files
authored
chore: suppress test warnings (#174)
1 parent fbae1bb commit fc5589d

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

t/v3/cluster.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ if ($etcd_version =~ /^etcd Version: 2/ || $etcd_version =~ /^etcd Version: 3.1.
99
plan(skip_all => "etcd is too old, skip v3 protocol");
1010
} else {
1111
my $enable_tls = $ENV{ETCD_ENABLE_TLS};
12-
if ($enable_tls eq "TRUE") {
12+
if (defined($enable_tls) && $enable_tls eq "TRUE") {
1313
plan(skip_all => "skip test cases with auth when TLS is enabled");
1414
} else {
1515
plan 'no_plan';

t/v3/health_check.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ if ($etcd_version =~ /^etcd Version: 2/ || $etcd_version =~ /^etcd Version: 3.1.
1010
plan(skip_all => "etcd is too old, skip v3 protocol");
1111
} else {
1212
my $enable_tls = $ENV{ETCD_ENABLE_TLS};
13-
if ($enable_tls eq "TRUE") {
13+
if (defined($enable_tls) && $enable_tls eq "TRUE") {
1414
plan(skip_all => "skip test cases with auth when TLS is enabled");
1515
} else {
1616
plan 'no_plan';

t/v3/mtls.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ no_long_string();
55
repeat_each(1);
66

77
my $enable_tls = $ENV{ETCD_ENABLE_MTLS};
8-
if ($enable_tls eq "TRUE") {
8+
if (defined($enable_tls) && $enable_tls eq "TRUE") {
99
plan 'no_plan';
1010
} else {
1111
plan(skip_all => "etcd is not capable for mTLS connection");

t/v3/sni.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ no_long_string();
55
repeat_each(1);
66

77
my $enable_tls = $ENV{ETCD_ENABLE_MTLS};
8-
if ($enable_tls eq "TRUE") {
8+
if (defined($enable_tls) && $enable_tls eq "TRUE") {
99
plan 'no_plan';
1010
} else {
1111
plan(skip_all => "etcd is not capable for mTLS connection");

t/v3/tls.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ no_long_string();
55
repeat_each(1);
66

77
my $enable_tls = $ENV{ETCD_ENABLE_TLS};
8-
if ($enable_tls eq "TRUE") {
8+
if (defined($enable_tls) && $enable_tls eq "TRUE") {
99
plan 'no_plan';
1010
} else {
1111
plan(skip_all => "etcd is not capable for TLS connection");

0 commit comments

Comments
 (0)