mirror of https://github.com/status-im/consul.git
Fixes test server startup returning wrong error.
Seen in https://travis-ci.org/hashicorp/consul/builds/214521317.
This commit is contained in:
parent
9a6dd658a8
commit
15e7247131
|
@ -250,7 +250,7 @@ func NewTestServerConfig(cb ServerConfigCallback) (*TestServer, error) {
|
|||
}
|
||||
if startErr != nil {
|
||||
defer server.Stop()
|
||||
return nil, errors.Wrap(err, "failed waiting for server to start")
|
||||
return nil, errors.Wrap(startErr, "failed waiting for server to start")
|
||||
}
|
||||
|
||||
return server, nil
|
||||
|
|
Loading…
Reference in New Issue