mirror of
https://github.com/sourcegraph/sourcegraph.git
synced 2026-02-06 15:12:02 +00:00
gitserver: Small mocks cleanup (#60497)
Test plan: Just removed some mock code, CI should find any issues.
This commit is contained in:
parent
781493c1f5
commit
da85c8a832
@ -49,7 +49,6 @@ func initHTTPTestGitServer(t *testing.T, httpStatusCode int, resp string) {
|
||||
|
||||
t.Cleanup(func() {
|
||||
s.Close()
|
||||
gitserver.ResetClientMocks()
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@ -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,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user