Only run the tls-name-validation test if --tls is passed into runtest

This commit is contained in:
Vivek Saini 2022-04-20 00:30:01 +00:00 committed by John Sully
parent 71121dff4e
commit 345a3873a0

View File

@ -1,3 +1,6 @@
# only run this test if tls is enabled
if {$::tls} {
package require tls
test {TLS: Able to connect with no allowlist} {
start_server {tags {"tls"}} {
catch {r PING} e
@ -109,3 +112,9 @@ test {TLS: Able to match against URI SAN} {
assert_match {PONG} $e
}
}
} else {
start_server {} {
# just a dummy server so that the test doesn't panic if tls is disabled
# otherwise the test will try to bind to a server that just isn't there
}
}