Added asynq and a task client to the container to faciliate task queues.
This commit is contained in:
parent
eb1e42bb02
commit
a8bd9f8b2d
12 changed files with 392 additions and 34 deletions
|
|
@ -28,11 +28,6 @@ func TestMain(m *testing.M) {
|
|||
|
||||
// Start a new container
|
||||
c = services.NewContainer()
|
||||
defer func() {
|
||||
if err := c.Shutdown(); err != nil {
|
||||
c.Web.Logger.Fatal(err)
|
||||
}
|
||||
}()
|
||||
|
||||
// Start a test HTTP server
|
||||
BuildRouter(c)
|
||||
|
|
@ -40,7 +35,13 @@ func TestMain(m *testing.M) {
|
|||
|
||||
// Run tests
|
||||
exitVal := m.Run()
|
||||
|
||||
// Shutdown the container and test server
|
||||
if err := c.Shutdown(); err != nil {
|
||||
panic(err)
|
||||
}
|
||||
srv.Close()
|
||||
|
||||
os.Exit(exitVal)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue