From d9f8b2375cdb338e4b4cfa7e8f1e3c58f9acdc9d Mon Sep 17 00:00:00 2001 From: Paulo Truta Date: Sat, 12 Jun 2021 12:31:48 +0000 Subject: [PATCH] Fix invalid argument type for Exec family of tests --- internal/utils/utils_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/utils/utils_test.go b/internal/utils/utils_test.go index 184745e..2b5b810 100644 --- a/internal/utils/utils_test.go +++ b/internal/utils/utils_test.go @@ -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)