Added template renderer service.
This commit is contained in:
parent
d2ce5c34c4
commit
38cf009b70
5 changed files with 146 additions and 78 deletions
|
|
@ -27,6 +27,11 @@ func TestMain(m *testing.M) {
|
|||
|
||||
// Create a new container
|
||||
c = NewContainer()
|
||||
defer func() {
|
||||
if err := c.Shutdown(); err != nil {
|
||||
c.Web.Logger.Fatal(err)
|
||||
}
|
||||
}()
|
||||
|
||||
// Create a web context
|
||||
req := httptest.NewRequest(http.MethodPost, "/", strings.NewReader(""))
|
||||
|
|
@ -48,8 +53,5 @@ func TestMain(m *testing.M) {
|
|||
|
||||
// Run tests
|
||||
exitVal := m.Run()
|
||||
if err := c.Shutdown(); err != nil {
|
||||
panic(err)
|
||||
}
|
||||
os.Exit(exitVal)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue