Browse Source

integration: fix httptest TLS server start

Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
Gyuho Lee 7 years ago
parent
commit
3d3ba8b9cb
1 changed files with 5 additions and 1 deletions
  1. 5 1
      integration/cluster.go

+ 5 - 1
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() {