summaryrefslogtreecommitdiff
path: root/internal/hexaiaction/cmdentry_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/hexaiaction/cmdentry_test.go')
-rw-r--r--internal/hexaiaction/cmdentry_test.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/internal/hexaiaction/cmdentry_test.go b/internal/hexaiaction/cmdentry_test.go
index 71ed9db..054c78c 100644
--- a/internal/hexaiaction/cmdentry_test.go
+++ b/internal/hexaiaction/cmdentry_test.go
@@ -90,7 +90,7 @@ func TestRunInTmuxParent_Stubbed(t *testing.T) {
return nil
}
t.Cleanup(func() { osExecutableFn = oldExec; splitRunFn = oldSplit })
- if err := runInTmuxParent(r, wout, "", "v", 33); err != nil {
+ if err := runInTmuxParent(context.Background(), r, wout, "", "v", 33); err != nil {
t.Fatalf("runInTmuxParent: %v", err)
}
_ = wout.Close()
@@ -108,7 +108,7 @@ func TestRunInTmuxParent_ExecutableError(t *testing.T) {
r, w, _ := os.Pipe()
_, _ = w.Write([]byte("x"))
_ = w.Close()
- if err := runInTmuxParent(r, io.Discard, "", "v", 33); err == nil {
+ if err := runInTmuxParent(context.Background(), r, io.Discard, "", "v", 33); err == nil {
t.Fatal("expected error from missing executable")
}
}
@@ -122,7 +122,7 @@ func TestRunInTmuxParent_SplitError(t *testing.T) {
r, w, _ := os.Pipe()
_, _ = w.Write([]byte("x"))
_ = w.Close()
- if err := runInTmuxParent(r, io.Discard, "", "v", 33); err == nil {
+ if err := runInTmuxParent(context.Background(), r, io.Discard, "", "v", 33); err == nil {
t.Fatal("expected split error")
}
}
@@ -161,7 +161,7 @@ func TestRunChild_StdoutAndOutfile(t *testing.T) {
func TestWaitForFile_Timeout(t *testing.T) {
dir := t.TempDir()
p := filepath.Join(dir, "nope")
- if err := waitForFile(p, 10*time.Millisecond); err == nil {
+ if err := waitForFile(context.Background(), p, 10*time.Millisecond); err == nil {
t.Fatal("expected timeout error")
}
}