mirror of
https://github.com/mjl-/mox.git
synced 2025-07-19 00:46:36 +03:00
Add missing wlocks around message delivery to account, mostly for tests.
This commit is contained in:
@ -450,8 +450,11 @@ func TestCtl(t *testing.T) {
|
||||
defer msgf.Close()
|
||||
_, err = msgf.Write(content)
|
||||
tcheck(t, err, "write message file")
|
||||
err = acc.DeliverMailbox(ctl.log, "Inbox", m, msgf)
|
||||
tcheck(t, err, "deliver message")
|
||||
|
||||
acc.WithWLock(func() {
|
||||
err = acc.DeliverMailbox(ctl.log, "Inbox", m, msgf)
|
||||
tcheck(t, err, "deliver message")
|
||||
})
|
||||
}
|
||||
|
||||
var msgBadSize store.Message
|
||||
|
Reference in New Issue
Block a user