summaryrefslogtreecommitdiffstats
path: root/api4/user_test.go
diff options
context:
space:
mode:
authorCorey Hulen <corey@hulen.com>2017-09-19 13:34:39 -0700
committerJoram Wilander <jwawilander@gmail.com>2017-09-19 16:34:39 -0400
commit99b7d65504ce729db4255f2d31def0859d36e87f (patch)
tree0aa6fb4a00104931abcb0cf1bc980e749789b49d /api4/user_test.go
parent0643bf51595396a7dab88be07a9f2b50410dedea (diff)
downloadchat-99b7d65504ce729db4255f2d31def0859d36e87f.tar.gz
chat-99b7d65504ce729db4255f2d31def0859d36e87f.tar.bz2
chat-99b7d65504ce729db4255f2d31def0859d36e87f.zip
Fixing profile image tag (#7435)
* Fixing profile image tag * Fixing unit test * Fixing unit test
Diffstat (limited to 'api4/user_test.go')
-rw-r--r--api4/user_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/api4/user_test.go b/api4/user_test.go
index 1b9553d2d..6a6436896 100644
--- a/api4/user_test.go
+++ b/api4/user_test.go
@@ -866,8 +866,8 @@ func TestGetProfileImage(t *testing.T) {
}
_, resp = Client.GetProfileImage(user.Id, resp.Etag)
- if resp.StatusCode != http.StatusNotModified {
- t.Fatal("Should have hit etag")
+ if resp.StatusCode == http.StatusNotModified {
+ t.Fatal("Shouldn't have hit etag")
}
_, resp = Client.GetProfileImage("junk", "")