From 15f6e90ce2c88c2a0d3d0116846e00a995d4788f Mon Sep 17 00:00:00 2001 From: josedonizetti Date: Mon, 19 Aug 2019 20:35:59 -0400 Subject: [PATCH] Fix testConfig --- test/integration/fn_config.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/test/integration/fn_config.go b/test/integration/fn_config.go index 80a5de6e5a..2c92f9e83c 100644 --- a/test/integration/fn_config.go +++ b/test/integration/fn_config.go @@ -19,6 +19,8 @@ limitations under the License. package integration import ( + "strings" + "testing" ) @@ -39,9 +41,9 @@ func testConfig(t *testing.T) { } for _, test := range tests { - sshCmdOutput, stderr := mk.RunCommand(t.cmd) - if !strings.Contains(sshCmdOutput, t.output) { - t.Fatalf("ExpectedStr sshCmdOutput to be: %s. Output was: %s Stderr: %s", expectedStr, sshCmdOutput, stderr) + sshCmdOutput, stderr := mk.RunCommand(test.cmd, true) + if !strings.Contains(sshCmdOutput, test.output) { + t.Fatalf("ExpectedStr sshCmdOutput to be: %s. Output was: %s Stderr: %s", test.output, sshCmdOutput, stderr) } } }