Skip to content

Commit

Permalink
Update branches_e2e_test.go (#1838)
Browse files Browse the repository at this point in the history
  • Loading branch information
laurentsimon authored Apr 13, 2022
1 parent 410a145 commit c0e41f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clients/githubrepo/branches_e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ var _ = Describe("E2E TEST: githubrepo.branchesHandler", func() {

Context("E2E TEST: Validate query cost", func() {
It("Should not have increased for HEAD query", func() {
skipIfTokenIsNot(githubWorkflowDefaultTokenType, "GITHUB_TOKEN only")
skipIfTokenIsNot(patTokenType, "GITHUB_TOKEN only")

repourl := &repoURL{
owner: "ossf",
Expand All @@ -48,7 +48,7 @@ var _ = Describe("E2E TEST: githubrepo.branchesHandler", func() {
Expect(*brancheshandler.data.RateLimit.Cost).Should(BeNumerically("<=", 1))
})
It("Should fail for non-HEAD query", func() {
skipIfTokenIsNot(githubWorkflowDefaultTokenType, "GITHUB_TOKEN only")
skipIfTokenIsNot(patTokenType, "GITHUB_TOKEN only")

repourl := &repoURL{
owner: "ossf",
Expand Down

0 comments on commit c0e41f3

Please sign in to comment.