mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
integration: fix httptest TLS server start
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
This commit is contained in:
parent
08641dd48b
commit
3d3ba8b9cb
@ -762,7 +762,11 @@ func (m *member) Launch() error {
|
|||||||
Config: &http.Server{Handler: h, TLSConfig: peerTLScfg},
|
Config: &http.Server{Handler: h, TLSConfig: peerTLScfg},
|
||||||
TLS: peerTLScfg,
|
TLS: peerTLScfg,
|
||||||
}
|
}
|
||||||
hs.Start()
|
if peerTLScfg == nil {
|
||||||
|
hs.Start()
|
||||||
|
} else {
|
||||||
|
hs.StartTLS()
|
||||||
|
}
|
||||||
|
|
||||||
donec := make(chan struct{})
|
donec := make(chan struct{})
|
||||||
go func() {
|
go func() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user