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:
@ -25,8 +25,7 @@ func TestExport(t *testing.T) {
|
||||
acc, err := OpenAccount("mjl")
|
||||
tcheck(t, err, "open account")
|
||||
defer acc.Close()
|
||||
switchDone := Switchboard()
|
||||
defer close(switchDone)
|
||||
defer Switchboard()()
|
||||
|
||||
log := mlog.New("export")
|
||||
|
||||
|
Reference in New Issue
Block a user