Update git/client_test.go
Co-authored-by: Andy Feller <andyfeller@github.com>
This commit is contained in:
parent
622e283d2b
commit
ec086a021b
1 changed files with 1 additions and 0 deletions
|
|
@ -1655,6 +1655,7 @@ func createMockedCommandContext(t *testing.T, commands mockedCommands) commandCt
|
|||
marshaledCommands, err := json.Marshal(commands)
|
||||
require.NoError(t, err)
|
||||
|
||||
// invokes helper within current test binary, emulating desired behavior
|
||||
return func(ctx context.Context, exe string, args ...string) *exec.Cmd {
|
||||
cmd := exec.CommandContext(context.Background(), os.Args[0], "-test.run=TestCommandMocking", "--")
|
||||
cmd.Env = []string{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue