From c0e41f3a54ddd3ee7f0b273f4be5e7240e4c0ac9 Mon Sep 17 00:00:00 2001 From: laurentsimon <64505099+laurentsimon@users.noreply.github.com> Date: Wed, 13 Apr 2022 16:45:07 -0700 Subject: [PATCH] Update branches_e2e_test.go (#1838) --- clients/githubrepo/branches_e2e_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clients/githubrepo/branches_e2e_test.go b/clients/githubrepo/branches_e2e_test.go index 626d1b14133..0396e750f2c 100644 --- a/clients/githubrepo/branches_e2e_test.go +++ b/clients/githubrepo/branches_e2e_test.go @@ -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",