summaryrefslogtreecommitdiffstats
path: root/api/user_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'api/user_test.go')
-rw-r--r--api/user_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/api/user_test.go b/api/user_test.go
index 44ee1bfb0..5b6309bcf 100644
--- a/api/user_test.go
+++ b/api/user_test.go
@@ -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")
}
}