diff --git a/app/rest/auth/avatar_test.go b/app/rest/auth/avatar_test.go index 9389aa64..9b22790c 100644 --- a/app/rest/auth/avatar_test.go +++ b/app/rest/auth/avatar_test.go @@ -85,7 +85,11 @@ func TestRoutes(t *testing.T) { handler.ServeHTTP(rr, req) assert.Equal(t, http.StatusOK, rr.Code) - assert.EqualValues(t, http.Header{"Content-Type": []string{"image/*"}, "Content-Length": []string{"21"}}, rr.HeaderMap) + + assert.Equal(t, []string{"image/*"}, rr.HeaderMap["Content-Type"]) + assert.Equal(t, []string{"21"}, rr.HeaderMap["Content-Length"]) + assert.NotNil(t, rr.HeaderMap["Etag"]) + bb := bytes.Buffer{} sz, err := io.Copy(&bb, rr.Body) assert.NoError(t, err)