mirror of
https://github.com/edgebox-iot/edgeboxctl.git
synced 2026-10-06 19:27:07 +02:00
Fix invalid argument type for Exec family of tests
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user