mirror of
https://github.com/mjl-/mox.git
synced 2025-07-12 12:24:38 +03:00
Add missing wlocks around message delivery to account, mostly for tests.
This commit is contained in:
@ -42,8 +42,11 @@ func TestThreadingUpgrade(t *testing.T) {
|
||||
MsgPrefix: []byte(s),
|
||||
Received: recv,
|
||||
}
|
||||
err = acc.DeliverMailbox(log, "Inbox", &m, f)
|
||||
tcheck(t, err, "deliver")
|
||||
acc.WithWLock(func() {
|
||||
err = acc.DeliverMailbox(log, "Inbox", &m, f)
|
||||
tcheck(t, err, "deliver")
|
||||
})
|
||||
|
||||
if expThreadID == 0 {
|
||||
expThreadID = m.ID
|
||||
}
|
||||
|
Reference in New Issue
Block a user