mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Merge pull request #14999 from fuweid/deflake-14926
e2e: deflake TestCtlV3AuthGracefulDisable
This commit is contained in:
commit
5879ee9bd2
@ -159,10 +159,21 @@ func (pp *proxyProc) Stop() error {
|
|||||||
if pp.proc == nil {
|
if pp.proc == nil {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
if err := pp.proc.Stop(); err != nil && !strings.Contains(err.Error(), "exit status 1") {
|
err := pp.proc.Stop()
|
||||||
// v2proxy exits with status 1 on auto tls; not sure why
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
err = pp.proc.Close()
|
||||||
|
if err != nil {
|
||||||
|
// proxy received SIGTERM signal
|
||||||
|
if !(strings.Contains(err.Error(), "unexpected exit code") ||
|
||||||
|
// v2proxy exits with status 1 on auto tls; not sure why
|
||||||
|
strings.Contains(err.Error(), "exit status 1")) {
|
||||||
|
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
}
|
||||||
pp.proc = nil
|
pp.proc = nil
|
||||||
<-pp.donec
|
<-pp.donec
|
||||||
pp.donec = make(chan struct{})
|
pp.donec = make(chan struct{})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user