Fix invalid argument type for Exec family of tests

pull/13/head
Paulo Truta 2021-06-12 12:31:48 +00:00
parent f4e64ae522
commit d9f8b2375c
1 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@ import (
func TestExec(t *testing.T) {
testCommand := "echo"
testArguments := "'Hello World'"
testArguments := []string{"'Hello World'"}
result := Exec(testCommand, testArguments)
@ -21,7 +21,7 @@ func TestExec(t *testing.T) {
func TestExecAndGetLines(t *testing.T) {
testCommand := "echo"
testArguments := "$'Line1\nLine2\nLine3'"
testArguments := []string{"$'Line1\nLine2\nLine3'"}
var result []string
scanner := ExecAndGetLines(testCommand, testArguments)