This commit is contained in:
laurentsimon 2022-04-12 14:14:49 +00:00 committed by Naveen
parent 6a48f174ce
commit eedd16d5be
2 changed files with 2 additions and 6 deletions

View File

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

View File

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