summaryrefslogtreecommitdiff
path: root/internal/hexaiaction/cmdentry_test.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-03-23 09:04:17 +0200
committerPaul Buetow <paul@buetow.org>2026-03-23 09:04:17 +0200
commit462184dff3eef32f01f06634305da1355ac1bec2 (patch)
tree026ffaaeacfe152957298c985e1df77ff661b723 /internal/hexaiaction/cmdentry_test.go
parent667f2d3384643aa877de2eefcbad3923965bad09 (diff)
chore: bump version to v0.25.9v0.25.9
Code quality fixes from audit: - Log silently discarded errors in status sinks and stats.Update call sites - Fix json.Marshal errors silently ignored in LSP handlers - Replace time.Sleep in tests with channel signaling (mcp) and fake clock (stats) - Make context cancellation work in production time.Sleep sites (handlers_document, cmdentry) - Remove init()-based provider registration from llm package; use explicit RegisterAllProviders() - Add WaitGroup goroutine tracking to MCP server Run() Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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")
}
}