mirror of
https://github.com/mjl-/mox.git
synced 2025-07-10 06:34:40 +03:00
in queue.Drop, to drop a message from the outgoing queue, not only remove it from the database, but also its contents from the file system
This commit is contained in:
@ -102,6 +102,9 @@ func TestQueue(t *testing.T) {
|
||||
if n != 1 {
|
||||
t.Fatalf("dropped %d, expected 1", n)
|
||||
}
|
||||
if _, err := os.Stat(msgs[1].MessagePath()); err == nil || !os.IsNotExist(err) {
|
||||
t.Fatalf("dropped message not removed from file system")
|
||||
}
|
||||
|
||||
next := nextWork(ctxbg, nil)
|
||||
if next > 0 {
|
||||
|
Reference in New Issue
Block a user