make test for imap getmetadata reliable by sorting output by key

This commit is contained in:
Mechiel Lukkien
2025-02-19 14:58:22 +01:00
parent f30c44eddb
commit de6262b90a

View File

@ -101,6 +101,7 @@ func (c *conn) cmdGetmetadata(tag, cmd string, p *parser) {
q.FilterNonzero(store.Annotation{MailboxID: mb.ID}) q.FilterNonzero(store.Annotation{MailboxID: mb.ID})
} }
q.SortAsc("MailboxID", "Key") // For tests.
err := q.ForEach(func(a store.Annotation) error { err := q.ForEach(func(a store.Annotation) error {
// ../rfc/5464:516 // ../rfc/5464:516
switch optDepth { switch optDepth {