GODT-1076 Fix UIDPLUS response for importing existing message

This commit is contained in:
Michal Horejsek
2021-02-26 12:30:54 +01:00
parent a94c8a943f
commit 479b951c50
4 changed files with 42 additions and 3 deletions

View File

@ -107,6 +107,13 @@ func (ir *IMAPResponse) AssertOK() *IMAPResponse {
return ir
}
func (ir *IMAPResponse) AssertResult(wantResult string) *IMAPResponse {
ir.wait()
a.NoError(ir.t, ir.err)
a.Regexp(ir.t, wantResult, ir.result, "Expected result %s but got %s", wantResult, ir.result)
return ir
}
func (ir *IMAPResponse) AssertError(wantErrMsg string) *IMAPResponse {
ir.wait()
if ir.err == nil {