Make error message in imapserver tests about missing untagged responses more readable.

This commit is contained in:
Mechiel Lukkien 2025-03-10 19:00:44 +01:00
parent 397fd1f5e7
commit 60da7f34b8
No known key found for this signature in database

View File

@ -232,9 +232,9 @@ next:
}
var next string
if len(tc.lastUntagged) > 0 {
next = fmt.Sprintf(", next %#v", tc.lastUntagged[0])
next = fmt.Sprintf(", next:\n%#v", tc.lastUntagged[0])
}
tc.t.Fatalf("did not find untagged response %#v %T (%d) in %v%s", exp, exp, ei, tc.lastUntagged, next)
tc.t.Fatalf("did not find untagged response:\n%#v %T (%d)\nin %v%s", exp, exp, ei, tc.lastUntagged, next)
}
if len(last) > 0 && all {
tc.t.Fatalf("leftover untagged responses %v", last)