Skip to content

Commit 02f7d48

Browse files
jackHay22silverwind
authored andcommitted
Adds tests to cover changes made in go-gitea#28765
1 parent 051eea9 commit 02f7d48

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/integration/api_user_watch_test.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,10 @@ func TestAPIWatch(t *testing.T) {
6666
t.Run("IsWatching", func(t *testing.T) {
6767
defer tests.PrintCurrentTest(t)()
6868

69-
req := NewRequest(t, "GET", fmt.Sprintf("/api/v1/repos/%s/subscription", repo)).
69+
req := NewRequest(t, "GET", fmt.Sprintf("/api/v1/repos/%s/subscription", repo))
70+
MakeRequest(t, req, http.StatusUnauthorized)
71+
72+
req = NewRequest(t, "GET", fmt.Sprintf("/api/v1/repos/%s/subscription", repo)).
7073
AddTokenAuth(tokenWithRepoScope)
7174
MakeRequest(t, req, http.StatusOK)
7275

0 commit comments

Comments
 (0)