integration: fix httptest TLS server start
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
This commit is contained in:
@ -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() {
|
||||
|
Reference in New Issue
Block a user