mirror of
https://github.com/mjl-/mox.git
synced 2025-07-12 11:44: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:
@ -314,6 +314,7 @@ func TestAPI(t *testing.T) {
|
||||
queue.Localserve = true // Deliver directly to us instead attempting actual delivery.
|
||||
err = queue.Init()
|
||||
tcheck(t, err, "queue init")
|
||||
defer queue.Shutdown()
|
||||
api.MessageSubmit(ctx, SubmitMessage{
|
||||
From: "mjl@mox.example",
|
||||
To: []string{"mjl+to@mox.example", "mjl to2 <mjl+to2@mox.example>"},
|
||||
|
Reference in New Issue
Block a user