Fixing profile image tag (#7435)

* Fixing profile image tag

* Fixing unit test

* Fixing unit test
This commit is contained in:
Corey Hulen
2017-09-19 13:34:39 -07:00
committed by Joram Wilander
parent 0643bf5159
commit 99b7d65504
4 changed files with 6 additions and 6 deletions

View File

@@ -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")
}
}