author | Alberto Bertogli
<albertito@blitiri.com.ar> 2019-11-30 11:37:11 UTC |
committer | Alberto Bertogli
<albertito@blitiri.com.ar> 2019-11-30 11:38:46 UTC |
parent | ac2c5ab4dbaf8dc3027c02ad46f6b7781db79d64 |
internal/smtpsrv/server_test.go | +4 | -0 |
diff --git a/internal/smtpsrv/server_test.go b/internal/smtpsrv/server_test.go index c1109e3..292ee1c 100644 --- a/internal/smtpsrv/server_test.go +++ b/internal/smtpsrv/server_test.go @@ -28,6 +28,8 @@ var ( "SMTP server address to test (defaults to use internal)") externalSubmissionAddr = flag.String("external_submission_addr", "", "submission server address to test (defaults to use internal)") + externalSubmissionTLSAddr = flag.String("external_submission_tls_addr", "", + "submission+TLS server address to test (defaults to use internal)") ) var ( @@ -449,6 +451,7 @@ func realMain(m *testing.M) int { if *externalSMTPAddr != "" { smtpAddr = *externalSMTPAddr submissionAddr = *externalSubmissionAddr + submissionTLSAddr = *externalSubmissionTLSAddr tlsConfig = &tls.Config{ InsecureSkipVerify: true, } @@ -495,6 +498,7 @@ func realMain(m *testing.M) int { waitForServer(smtpAddr) waitForServer(submissionAddr) + waitForServer(submissionTLSAddr) return m.Run() }