test: Update fake server with defautl draft content-type and test it.

This commit is contained in:
Romain Le Jeune
2023-10-17 08:16:39 +00:00
parent dda2a5d01a
commit ab76cab533
4 changed files with 14 additions and 5 deletions

View File

@ -362,8 +362,8 @@ func createContact(ctx context.Context, c *proton.Client, contact, name string,
if err != nil {
return err
}
if res[0].Response.APIError.Code != proton.SuccessCode {
return errors.New("APIError " + res[0].Response.APIError.Message + " while creating contact")
if res[0].Response.Response.Code != proton.SuccessCode {
return errors.New("APIError " + res[0].Response.Response.Message + " while creating contact")
}
if settings != nil {