Added shutdown method to container.
This commit is contained in:
parent
c6c9ed7fd2
commit
85981e75a7
5 changed files with 35 additions and 11 deletions
|
|
@ -33,6 +33,9 @@ func TestMain(m *testing.M) {
|
|||
// Run tests
|
||||
exitVal := m.Run()
|
||||
srv.Close()
|
||||
if err := c.Shutdown(); err != nil {
|
||||
panic(err)
|
||||
}
|
||||
os.Exit(exitVal)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue