We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 564bb7d commit e7f84bfCopy full SHA for e7f84bf
pkg/github/repositories_test.go
@@ -2292,12 +2292,10 @@ func Test_resolveGitReference(t *testing.T) {
2292
ref: "main",
2293
sha: "",
2294
mockSetup: func() *http.Client {
2295
- callCount := 0
2296
return mock.NewMockedHTTPClient(
2297
mock.WithRequestMatchHandler(
2298
mock.GetReposGitRefByOwnerByRepoByRef,
2299
http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
2300
- callCount++
2301
if strings.Contains(r.URL.Path, "/git/ref/heads/main") {
2302
w.WriteHeader(http.StatusOK)
2303
_, _ = w.Write([]byte(`{"ref": "refs/heads/main", "object": {"sha": "main-sha"}}`))
0 commit comments