Adds tests to cover changes made in #28765
pull/28691/head^2
Jack Hay 10 months ago committed by GitHub
parent 9b59af37e7
commit 6c6823935c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      tests/integration/api_user_watch_test.go

@ -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)

Loading…
Cancel
Save