mirror of
https://github.com/mjl-/mox.git
synced 2025-07-14 18:14:38 +03:00
make tests pass with "go test -count n" with n > 1
by closing initialized resources during tests.
This commit is contained in:
@ -220,6 +220,7 @@ func TestAdmin(t *testing.T) {
|
||||
mox.MustLoadConfig(true, false)
|
||||
err := queue.Init()
|
||||
tcheck(t, err, "queue init")
|
||||
defer queue.Shutdown()
|
||||
|
||||
api := Admin{}
|
||||
|
||||
|
Reference in New Issue
Block a user