diff --git a/e2e/branch_protection_test.go b/e2e/branch_protection_test.go index 3c1465fd..d8fa9362 100644 --- a/e2e/branch_protection_test.go +++ b/e2e/branch_protection_test.go @@ -143,6 +143,8 @@ var _ = Describe("E2E TEST GITHUB_TOKEN:"+checks.CheckBranchProtection, func() { } result := checks.BranchProtection(&req) + // There should be an error with the GITHUB_TOKEN, until it's supported + // byt GitHub. Expect(result.Error).ShouldNot(BeNil()) Expect(repoClient.Close()).Should(BeNil()) }) diff --git a/e2e/e2e_suite_test.go b/e2e/e2e_suite_test.go index 5f81dfbc..2581e274 100644 --- a/e2e/e2e_suite_test.go +++ b/e2e/e2e_suite_test.go @@ -45,12 +45,6 @@ const ( var tokType tokenType -func skipIfTokenIs(t tokenType, msg string) { - if tokType == t { - Skip(msg) - } -} - func skipIfTokenIsNot(t tokenType, msg string) { if tokType != t { Skip(msg)