gitserver: Small mocks cleanup (#60497)

Test plan:

Just removed some mock code, CI should find any issues.
This commit is contained in:
Erik Seliger 2024-02-15 20:39:56 +01:00 committed by GitHub
parent 781493c1f5
commit da85c8a832
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 0 additions and 6 deletions

View File

@ -49,7 +49,6 @@ func initHTTPTestGitServer(t *testing.T, httpStatusCode int, resp string) {
t.Cleanup(func() {
s.Close()
gitserver.ResetClientMocks()
})
}

View File

@ -35,7 +35,6 @@ import (
const git = "git"
var ClientMocks, emptyClientMocks struct {
GetObject func(repo api.RepoName, objectName string) (*gitdomain.GitObject, error)
LocalGitserver bool
LocalGitCommandReposDir string
}
@ -1195,10 +1194,6 @@ func (c *clientImplementor) GetObject(ctx context.Context, repo api.RepoName, ob
})
defer endObservation(1, observation.Args{})
if ClientMocks.GetObject != nil {
return ClientMocks.GetObject(repo, objectName)
}
req := protocol.GetObjectRequest{
Repo: repo,
ObjectName: objectName,