Added asynq and a task client to the container to faciliate task queues.
This commit is contained in:
parent
a82ed9c6d0
commit
c43f62a570
12 changed files with 392 additions and 34 deletions
|
|
@ -21,11 +21,6 @@ func TestMain(m *testing.M) {
|
|||
|
||||
// Create a new container
|
||||
c = services.NewContainer()
|
||||
defer func() {
|
||||
if err := c.Shutdown(); err != nil {
|
||||
c.Web.Logger.Fatal(err)
|
||||
}
|
||||
}()
|
||||
|
||||
// Create a user
|
||||
var err error
|
||||
|
|
@ -35,5 +30,11 @@ func TestMain(m *testing.M) {
|
|||
|
||||
// Run tests
|
||||
exitVal := m.Run()
|
||||
|
||||
// Shutdown the container
|
||||
if err = c.Shutdown(); err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
os.Exit(exitVal)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue