mirror of
https://github.com/mjl-/mox.git
synced 2025-07-10 09:14:39 +03:00
make tests pass with "go test -count n" with n > 1
by closing initialized resources during tests.
This commit is contained in:
@ -65,6 +65,7 @@ func TestServer(t *testing.T) {
|
||||
defer store.Switchboard()()
|
||||
err := queue.Init()
|
||||
tcheckf(t, err, "queue init")
|
||||
defer queue.Shutdown()
|
||||
|
||||
log := mlog.New("webapisrv", nil)
|
||||
acc, err := store.OpenAccount(log, "mjl")
|
||||
|
Reference in New Issue
Block a user