Added shutdown method to container.

This commit is contained in:
mikestefanello 2021-12-19 13:22:44 -05:00
parent c6c9ed7fd2
commit 85981e75a7
5 changed files with 35 additions and 11 deletions

View file

@ -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)
}