diff options
author | Joe Chen <jc@unknwon.io> | 2022-08-08 13:56:50 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-08 13:56:50 +0800 |
commit | a43b933c90ed7207e1d573bf118e3c37541835f8 (patch) | |
tree | c9db9bb6345628213cb481a943b2e4e0fdafb28f /internal/testutil/exec.go | |
parent | cfa5ddbde82f8aa892a5cc56fcc5aa7388e27ddc (diff) |
go: update required version to be 1.17 and add 1.19 to CI (#7129)
Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
Diffstat (limited to 'internal/testutil/exec.go')
-rw-r--r-- | internal/testutil/exec.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/testutil/exec.go b/internal/testutil/exec.go index eee1677b..45f08315 100644 --- a/internal/testutil/exec.go +++ b/internal/testutil/exec.go @@ -16,8 +16,8 @@ import ( // It is useful to mock "os/exec" functions in tests. When succeeded, it returns // the result produced by the test helper. // The test helper should: -// 1. Use WantHelperProcess function to determine if it is being called in helper mode. -// 2. Call fmt.Fprintln(os.Stdout, ...) to print results for the main test to collect. +// 1. Use WantHelperProcess function to determine if it is being called in helper mode. +// 2. Call fmt.Fprintln(os.Stdout, ...) to print results for the main test to collect. func Exec(helper string, envs ...string) (string, error) { cmd := exec.Command(os.Args[0], "-test.run="+helper, "--") cmd.Env = []string{"GO_WANT_HELPER_PROCESS=1"} |