Fix nil pointer bug (#856)

Co-authored-by: Azeem Shaikh <azeems@google.com>
This commit is contained in:
Azeem Shaikh 2021-08-13 16:42:03 -07:00 committed by GitHub
parent 8baaaa4cf8
commit 4c585f2e5f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -61,11 +61,14 @@ var _ = Describe("E2E TEST:"+checks.CheckContributors, func() {
})
It("Should return valid project contributors", func() {
dl := scut.TestDetailLogger{}
repoClient := githubrepo.CreateGithubRepoClient(context.Background(), ghClient, graphClient)
err := repoClient.InitRepo("apache", "airflow")
Expect(err).Should(BeNil())
checkRequest := checker.CheckRequest{
Ctx: context.Background(),
Client: ghClient,
HTTPClient: httpClient,
RepoClient: nil,
RepoClient: repoClient,
Owner: "apache",
Repo: "airflow",
GraphClient: graphClient,