mirror of
https://github.com/mjl-/mox.git
synced 2025-07-10 07:14:40 +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:
@ -38,8 +38,7 @@ func TestCtl(t *testing.T) {
|
||||
if errs := mox.LoadConfig(ctxbg, true, false); len(errs) > 0 {
|
||||
t.Fatalf("loading mox config: %v", errs)
|
||||
}
|
||||
switchDone := store.Switchboard()
|
||||
defer close(switchDone)
|
||||
defer store.Switchboard()()
|
||||
|
||||
xlog := mlog.New("ctl")
|
||||
|
||||
|
Reference in New Issue
Block a user