From 847687a637463f5f631e90ddd7eb79968b582d44 Mon Sep 17 00:00:00 2001 From: zach rice Date: Wed, 24 Oct 2018 16:48:34 -0500 Subject: [PATCH] fixing test. travis doesnt have rsa id --- github.go | 4 ---- gitleaks_test.go | 17 ----------------- 2 files changed, 21 deletions(-) diff --git a/github.go b/github.go index ee3494a9..3f63a8e2 100644 --- a/github.go +++ b/github.go @@ -117,11 +117,7 @@ func auditGithubRepos() ([]Leak, error) { break } if opts.GithubUser != "" { - // if opts.IncludePrivate { - // pagedGithubRepos, resp, err = githubClient.Repositories.List(ctx, "", githubOptions) - // } else { pagedGithubRepos, resp, err = githubClient.Repositories.List(ctx, opts.GithubUser, githubOptions) - // } if err != nil { done = true } diff --git a/gitleaks_test.go b/gitleaks_test.go index cac4f1cf..51833bb1 100644 --- a/gitleaks_test.go +++ b/gitleaks_test.go @@ -269,23 +269,6 @@ func TestRun(t *testing.T) { numLeaks: 0, expectedErrMsg: "unable to generate ssh key: open trash: no such file or directory", }, - { - testOpts: Options{ - Repo: "git@github.com:gitleakstest/gronit.git", - }, - description: "test leak", - numLeaks: 2, - expectedErrMsg: "", - }, - { - testOpts: Options{ - Repo: "git@github.com:gitleakstest/gronit.git", - Disk: true, - }, - description: "test leak", - numLeaks: 2, - expectedErrMsg: "", - }, { testOpts: Options{ Repo: "https://github.com/gitleakstest/gronit.git",