Fix error handling when requesting profile image for bad user ID (#8618)
Этот коммит содержится в:
коммит произвёл
Christopher Speller
родитель
ae5e324be8
Коммит
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)
|
||||
|
||||
Ссылка в новой задаче
Block a user