From 666f5574e4f8074063370c54c5e0cf2cf7d2ac3c Mon Sep 17 00:00:00 2001 From: Kynan Ware <47394200+BagToad@users.noreply.github.com> Date: Thu, 11 Sep 2025 09:20:48 -0600 Subject: [PATCH] Remove unused stdin field from create command tests The 'stdin' field and related code were removed from TestNewCmdCreate as they were no longer used. This simplifies the test structure and eliminates unnecessary code. --- pkg/cmd/agent-task/create/create_test.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/pkg/cmd/agent-task/create/create_test.go b/pkg/cmd/agent-task/create/create_test.go index 5780b70b3..06e9c7c4e 100644 --- a/pkg/cmd/agent-task/create/create_test.go +++ b/pkg/cmd/agent-task/create/create_test.go @@ -23,7 +23,6 @@ func TestNewCmdCreate(t *testing.T) { tests := []struct { name string args string - stdin string tty bool wantOpts *CreateOptions wantErr string @@ -82,9 +81,6 @@ func TestNewCmdCreate(t *testing.T) { cmd.SetIn(stdin) cmd.SetOut(io.Discard) cmd.SetErr(io.Discard) - if tt.stdin != "" { - stdin.WriteString(tt.stdin) - } _, err = cmd.ExecuteC() if tt.wantErr != "" {