diff --git a/internal/api/photos_test.go b/internal/api/photos_test.go index 1fb17dff3..c97090909 100644 --- a/internal/api/photos_test.go +++ b/internal/api/photos_test.go @@ -24,7 +24,7 @@ func TestLikePhoto(t *testing.T) { result := TestRequest(app, "POST", "/api/v1/photos/1/like") - assert.Equal(t, http.StatusOK, result.Code) + assert.Equal(t, http.StatusAccepted, result.Code) } func TestDislikePhoto(t *testing.T) { @@ -34,5 +34,5 @@ func TestDislikePhoto(t *testing.T) { result := TestRequest(app, "DELETE", "/api/v1/photos/1/like") - assert.Equal(t, http.StatusOK, result.Code) + assert.Equal(t, http.StatusAccepted, result.Code) }