mirror of
https://github.com/mjl-/mox.git
synced 2025-07-10 07:54: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:
@ -46,8 +46,7 @@ func TestAccount(t *testing.T) {
|
||||
err = acc.Close()
|
||||
tcheck(t, err, "closing account")
|
||||
}()
|
||||
switchDone := store.Switchboard()
|
||||
defer close(switchDone)
|
||||
defer store.Switchboard()()
|
||||
|
||||
log := mlog.New("store")
|
||||
|
||||
|
Reference in New Issue
Block a user