Fix invalid argument type for Exec family of tests

This commit is contained in:
Paulo Truta
2021-06-12 12:31:48 +00:00
parent f4e64ae522
commit d9f8b2375c
+2 -2
View File
@@ -9,7 +9,7 @@ import (
func TestExec(t *testing.T) { func TestExec(t *testing.T) {
testCommand := "echo" testCommand := "echo"
testArguments := "'Hello World'" testArguments := []string{"'Hello World'"}
result := Exec(testCommand, testArguments) result := Exec(testCommand, testArguments)
@@ -21,7 +21,7 @@ func TestExec(t *testing.T) {
func TestExecAndGetLines(t *testing.T) { func TestExecAndGetLines(t *testing.T) {
testCommand := "echo" testCommand := "echo"
testArguments := "$'Line1\nLine2\nLine3'" testArguments := []string{"$'Line1\nLine2\nLine3'"}
var result []string var result []string
scanner := ExecAndGetLines(testCommand, testArguments) scanner := ExecAndGetLines(testCommand, testArguments)