mirror of
https://github.com/mjl-/mox.git
synced 2025-07-12 11:44:38 +03:00
fix race in test setup/teardown
not easily triggered, but it happened just now on a build server.
This commit is contained in:
@ -45,8 +45,7 @@ func TestAPI(t *testing.T) {
|
||||
mox.Context = ctxbg
|
||||
mox.ConfigStaticPath = "../testdata/webmail/mox.conf"
|
||||
mox.MustLoadConfig(true, false)
|
||||
switchDone := store.Switchboard()
|
||||
defer close(switchDone)
|
||||
defer store.Switchboard()()
|
||||
|
||||
acc, err := store.OpenAccount("mjl")
|
||||
tcheck(t, err, "open account")
|
||||
|
Reference in New Issue
Block a user