Update branches_e2e_test.go (#1838)

This commit is contained in:
laurentsimon 2022-04-13 16:45:07 -07:00 committed by GitHub
parent 410a145db2
commit c0e41f3a54
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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",
@ -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",