I've seen this test crash a couple times with a "nil" result.

I'm not quite sure how it happens since I've never been able to reproduce
it a second time in a row, so let's treat it as somethign to be retried.
This commit is contained in:
Dan Lorenc 2020-11-12 10:23:22 -06:00
parent 45286f140c
commit 1a1f70cb40

View File

@ -89,7 +89,7 @@ func GithubCheckRuns(c checker.Checker) checker.CheckResult {
}
totalMerged++
crs, _, err := c.Client.Checks.ListCheckRunsForRef(c.Ctx, c.Owner, c.Repo, pr.GetHead().GetSHA(), &github.ListCheckRunsOptions{})
if err != nil {
if err != nil || crs == nil {
return checker.RetryResult(err)
}
for _, cr := range crs.CheckRuns {