From 3d3ba8b9cb182e958d8d0c26ac13fff899424fc9 Mon Sep 17 00:00:00 2001 From: Gyuho Lee Date: Fri, 13 Apr 2018 11:16:54 -0700 Subject: [PATCH] integration: fix httptest TLS server start Signed-off-by: Gyuho Lee --- integration/cluster.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/integration/cluster.go b/integration/cluster.go index eaee0e8ccd9..aaa96ab4d49 100644 --- a/integration/cluster.go +++ b/integration/cluster.go @@ -762,7 +762,11 @@ func (m *member) Launch() error { Config: &http.Server{Handler: h, TLSConfig: peerTLScfg}, TLS: peerTLScfg, } - hs.Start() + if peerTLScfg == nil { + hs.Start() + } else { + hs.StartTLS() + } donec := make(chan struct{}) go func() {