mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
Fixing profile image tag (#7435)
* Fixing profile image tag * Fixing unit test * Fixing unit test
This commit is contained in:
committed by
Joram Wilander
parent
0643bf5159
commit
99b7d65504
@@ -684,8 +684,8 @@ func TestUserCreateImage(t *testing.T) {
|
||||
} else {
|
||||
etag := resp.Header.Get(model.HEADER_ETAG_SERVER)
|
||||
resp2, _ := Client.DoApiGet("/users/"+user.Id+"/image", "", etag)
|
||||
if resp2.StatusCode != 304 {
|
||||
t.Fatal("Should have hit etag")
|
||||
if resp2.StatusCode == 304 {
|
||||
t.Fatal("Shouldn't have hit etag")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user