From 6fe55a3b4851425a5c837a57c7f28255bfcbb629 Mon Sep 17 00:00:00 2001 From: Ryan Richard Date: Mon, 7 Oct 2024 13:18:42 -0700 Subject: [PATCH] assume port 443 when not specified in printServerCert() test helper --- test/integration/supervisor_discovery_test.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/integration/supervisor_discovery_test.go b/test/integration/supervisor_discovery_test.go index ea9be548e..03427f36c 100644 --- a/test/integration/supervisor_discovery_test.go +++ b/test/integration/supervisor_discovery_test.go @@ -663,6 +663,11 @@ func printServerCert(t *testing.T, address string, dnsOverrides map[string]strin host = dnsOverrides[host] } + if !strings.Contains(host, ":") { + // tls.Dial() requires a port number, but there was no port number in the host, so assume 443. + host += ":443" + } + conn, err := tls.Dial("tcp", host, conf) require.NoError(t, err) defer func() { _ = conn.Close() }()