From ec086a021b9feddf600c3fc0d35ef8e17023ee6b Mon Sep 17 00:00:00 2001 From: William Martin Date: Wed, 27 Nov 2024 15:51:44 +0100 Subject: [PATCH] Update git/client_test.go Co-authored-by: Andy Feller --- git/client_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/git/client_test.go b/git/client_test.go index 65adf96da..0014ddc3f 100644 --- a/git/client_test.go +++ b/git/client_test.go @@ -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{