diff --git a/pkg/cmd/agent-task/create/create_test.go b/pkg/cmd/agent-task/create/create_test.go index 3a244c0e7..00134792f 100644 --- a/pkg/cmd/agent-task/create/create_test.go +++ b/pkg/cmd/agent-task/create/create_test.go @@ -50,7 +50,7 @@ func TestNewCmdCreate(t *testing.T) { }, { name: "from-file success", - args: fmt.Sprintf("-F %s", tmpFile), + args: fmt.Sprintf("-F '%s'", tmpFile), wantOpts: &CreateOptions{ ProblemStatement: "task description from file", }, @@ -75,7 +75,7 @@ func TestNewCmdCreate(t *testing.T) { }, { name: "empty file", - args: fmt.Sprintf("-F %s", tmpEmptyFile), + args: fmt.Sprintf("-F '%s'", tmpEmptyFile), wantErr: "task description file is empty", }, {