mirror of
https://github.com/mattermost/mattermost.git
synced 2026-10-29 18:53:04 +08:00
Fix error handling when requesting profile image for bad user ID (#8618)
This commit is contained in:
committed by
Christopher Speller
parent
ae5e324be8
commit
21b1cd44e0
@@ -834,6 +834,9 @@ func TestGetProfileImage(t *testing.T) {
|
||||
_, resp = Client.GetProfileImage("junk", "")
|
||||
CheckBadRequestStatus(t, resp)
|
||||
|
||||
_, resp = Client.GetProfileImage(model.NewId(), "")
|
||||
CheckNotFoundStatus(t, resp)
|
||||
|
||||
Client.Logout()
|
||||
_, resp = Client.GetProfileImage(user.Id, "")
|
||||
CheckUnauthorizedStatus(t, resp)
|
||||
|
||||
Reference in New Issue
Block a user