diff options
| author | Paul Buetow <paul@buetow.org> | 2026-03-27 11:31:15 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-03-27 11:31:15 +0200 |
| commit | 56e9f980e52a53197ace71acdb277ba0e0368916 (patch) | |
| tree | e608e2ad400087278a8821559d15536e3e0407dd /internal/askcli/command_urgency_test.go | |
| parent | 60ad41f9b49b3e93bc513e0035323d1ed9e81faf (diff) | |
Explicitly ignore askcli write errors
Diffstat (limited to 'internal/askcli/command_urgency_test.go')
| -rw-r--r-- | internal/askcli/command_urgency_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/askcli/command_urgency_test.go b/internal/askcli/command_urgency_test.go index dd6262d..2582e58 100644 --- a/internal/askcli/command_urgency_test.go +++ b/internal/askcli/command_urgency_test.go @@ -31,7 +31,7 @@ func TestHandleUrgency_Success(t *testing.T) { jsonData := `[{"uuid":"uuid-2","description":"Task 2","status":"pending","priority":"M","tags":["agent"],"urgency":10.0,"depends":[]},{"uuid":"uuid-1","description":"Task 1","status":"pending","priority":"H","tags":["cli"],"urgency":15.0,"depends":[]}]` d := NewDispatcher(&spyRunner{runFn: func(ctx context.Context, args []string, stdin io.Reader, stdout, stderr io.Writer) (int, error) { - io.WriteString(stdout, jsonData) + _, _ = io.WriteString(stdout, jsonData) return 0, nil }}) var stdout, stderr bytes.Buffer @@ -56,7 +56,7 @@ func TestHandleUrgency_Success(t *testing.T) { func TestHandleUrgency_EmptyList(t *testing.T) { d := NewDispatcher(&spyRunner{runFn: func(ctx context.Context, args []string, stdin io.Reader, stdout, stderr io.Writer) (int, error) { - io.WriteString(stdout, "[]") + _, _ = io.WriteString(stdout, "[]") return 0, nil }}) var stdout, stderr bytes.Buffer @@ -81,7 +81,7 @@ func TestHandleUrgency_PassesCorrectArgs(t *testing.T) { var capturedArgs []string d := NewDispatcher(&spyRunner{runFn: func(ctx context.Context, args []string, stdin io.Reader, stdout, stderr io.Writer) (int, error) { capturedArgs = args - io.WriteString(stdout, "[]") + _, _ = io.WriteString(stdout, "[]") return 0, nil }}) var stdout, stderr bytes.Buffer |
