mirror of
https://github.com/ossf/scorecard.git
synced 2024-09-19 21:18:09 +03:00
Fix nil pointer bug (#856)
Co-authored-by: Azeem Shaikh <azeems@google.com>
This commit is contained in:
parent
8baaaa4cf8
commit
4c585f2e5f
@ -61,11 +61,14 @@ var _ = Describe("E2E TEST:"+checks.CheckContributors, func() {
|
|||||||
})
|
})
|
||||||
It("Should return valid project contributors", func() {
|
It("Should return valid project contributors", func() {
|
||||||
dl := scut.TestDetailLogger{}
|
dl := scut.TestDetailLogger{}
|
||||||
|
repoClient := githubrepo.CreateGithubRepoClient(context.Background(), ghClient, graphClient)
|
||||||
|
err := repoClient.InitRepo("apache", "airflow")
|
||||||
|
Expect(err).Should(BeNil())
|
||||||
checkRequest := checker.CheckRequest{
|
checkRequest := checker.CheckRequest{
|
||||||
Ctx: context.Background(),
|
Ctx: context.Background(),
|
||||||
Client: ghClient,
|
Client: ghClient,
|
||||||
HTTPClient: httpClient,
|
HTTPClient: httpClient,
|
||||||
RepoClient: nil,
|
RepoClient: repoClient,
|
||||||
Owner: "apache",
|
Owner: "apache",
|
||||||
Repo: "airflow",
|
Repo: "airflow",
|
||||||
GraphClient: graphClient,
|
GraphClient: graphClient,
|
||||||
|
Loading…
Reference in New Issue
Block a user