Skip to content

Commit 6c68239

Browse files
authored
Add tests for #28765 (#28773)
Adds tests to cover changes made in #28765
1 parent 9b59af3 commit 6c68239

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)