Add missing wlocks around message delivery to account, mostly for tests.

This commit is contained in:
Mechiel Lukkien
2025-03-03 23:59:43 +01:00
parent 2da280f2bb
commit 684c716e4d
7 changed files with 50 additions and 37 deletions

View File

@ -293,6 +293,8 @@ func TestAuthenticateTLSClientCert(t *testing.T) {
tcheck(t, err, "open account")
err = acc.SetPassword(pkglog, "test1234")
tcheck(t, err, "set password")
err = acc.Close()
tcheck(t, err, "close account")
tc = startArgsMore(t, true, true, nil, &clientConfig, false, true, true, "mjl", addClientCert)
tc.transactf("no", "authenticate plain %s", base64.StdEncoding.EncodeToString([]byte("\u0000other@mox.example\u0000test1234")))
tc.close()