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 != "" {