mirror of https://github.com/status-im/consul.git
test: test server should auto cleanup (#11779)
This commit is contained in:
parent
7a365fa0da
commit
592ac8f96a
|
@ -285,6 +285,7 @@ func newServer(t *testing.T, c *Config) (*Server, error) {
|
|||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
t.Cleanup(func() { srv.Shutdown() })
|
||||
|
||||
// wait until after listen
|
||||
<-up
|
||||
|
|
Loading…
Reference in New Issue