Skip to content

Commit

Permalink
Add tests for go-gitea#28765 (go-gitea#28773)
Browse files Browse the repository at this point in the history
Adds tests to cover changes made in go-gitea#28765
  • Loading branch information
jackHay22 authored Jan 12, 2024
1 parent 9b59af3 commit 6c68239
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/integration/api_user_watch_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,10 @@ func TestAPIWatch(t *testing.T) {
t.Run("IsWatching", func(t *testing.T) {
defer tests.PrintCurrentTest(t)()

req := NewRequest(t, "GET", fmt.Sprintf("/api/v1/repos/%s/subscription", repo)).
req := NewRequest(t, "GET", fmt.Sprintf("/api/v1/repos/%s/subscription", repo))
MakeRequest(t, req, http.StatusUnauthorized)

req = NewRequest(t, "GET", fmt.Sprintf("/api/v1/repos/%s/subscription", repo)).
AddTokenAuth(tokenWithRepoScope)
MakeRequest(t, req, http.StatusOK)

Expand Down

0 comments on commit 6c68239

Please sign in to comment.