mirror of
https://github.com/mjl-/mox.git
synced 2025-07-12 13:44:37 +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:
@ -266,8 +266,7 @@ func TestWebmail(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