Skip to content

Commit 2b885f1

Browse files
committed
revert back context
Signed-off-by: Austin Abro <austinabro321@gmail.com>
1 parent f85b92c commit 2b885f1

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/test/common.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
package test
66

77
import (
8+
"context"
89
"errors"
910
"fmt"
1011
"io"
@@ -113,6 +114,7 @@ func (e2e *ZarfE2ETest) Zarf(t *testing.T, args ...string) (_ string, _ string,
113114

114115
// ZarfInDir executes a Zarf command in specific directory.
115116
func (e2e *ZarfE2ETest) ZarfInDir(t *testing.T, dir string, args ...string) (_ string, _ string, err error) {
117+
t.Helper()
116118
isToolCall := slices.Contains(args, "tools")
117119
isCI := os.Getenv("CI") == "true"
118120
isWindows := runtime.GOOS == "windows"
@@ -150,7 +152,7 @@ func (e2e *ZarfE2ETest) ZarfInDir(t *testing.T, dir string, args ...string) (_ s
150152
}
151153
cfg := exec.PrintCfg()
152154
cfg.Dir = dir
153-
return exec.CmdWithContext(t.Context(), cfg, e2e.ZarfBinPath, args...)
155+
return exec.CmdWithContext(context.Background(), cfg, e2e.ZarfBinPath, args...)
154156
}
155157

156158
// Kubectl executes `zarf tools kubectl ...`

0 commit comments

Comments
 (0)