mirror of
https://github.com/mjl-/mox.git
synced 2025-07-13 06:54:38 +03:00
in more tests, after closing accounts, check the last reference is indeed gone
This commit is contained in:
@ -66,6 +66,7 @@ func TestAPI(t *testing.T) {
|
||||
defer func() {
|
||||
err := acc.Close()
|
||||
pkglog.Check(err, "closing account")
|
||||
acc.CheckClosed()
|
||||
}()
|
||||
|
||||
var zerom store.Message
|
||||
|
@ -39,6 +39,7 @@ func TestView(t *testing.T) {
|
||||
defer func() {
|
||||
err := acc.Close()
|
||||
pkglog.Check(err, "closing account")
|
||||
acc.CheckClosed()
|
||||
}()
|
||||
|
||||
api := Webmail{maxMessageSize: 1024 * 1024, cookiePath: "/"}
|
||||
|
@ -301,6 +301,7 @@ func TestWebmail(t *testing.T) {
|
||||
defer func() {
|
||||
err := acc.Close()
|
||||
pkglog.Check(err, "closing account")
|
||||
acc.CheckClosed()
|
||||
}()
|
||||
|
||||
api := Webmail{maxMessageSize: 1024 * 1024, cookiePath: "/webmail/"}
|
||||
|
Reference in New Issue
Block a user