mirror of
https://github.com/mjl-/mox.git
synced 2025-07-10 07:54:40 +03:00
in more tests, after closing accounts, check the last reference is indeed gone
This commit is contained in:
@ -24,6 +24,7 @@ func TestThreadingUpgrade(t *testing.T) {
|
||||
defer func() {
|
||||
err = acc.Close()
|
||||
tcheck(t, err, "closing account")
|
||||
acc.CheckClosed()
|
||||
}()
|
||||
defer Switchboard()()
|
||||
|
||||
@ -116,6 +117,7 @@ func TestThreadingUpgrade(t *testing.T) {
|
||||
dbpath := acc.DBPath
|
||||
err = acc.Close()
|
||||
tcheck(t, err, "close account")
|
||||
acc.CheckClosed()
|
||||
|
||||
// Now clear the threading upgrade, and the threading fields and close the account.
|
||||
// We open the database file directly, so we don't trigger the consistency checker.
|
||||
|
Reference in New Issue
Block a user