diff --git a/plugin/deploy/ssh_test.go b/plugin/deploy/ssh_test.go index 581f15ccf..037d3ab34 100644 --- a/plugin/deploy/ssh_test.go +++ b/plugin/deploy/ssh_test.go @@ -70,7 +70,7 @@ func TestSSHNoArtifact(t *testing.T) { t.Error("Expect script not to contains scp command") } - if !strings.Contains(bscr, "ssh -o StrictHostKeyChecking=no -p 22 user@test.example.com /opt/bin/redeploy.sh") { + if !strings.Contains(bscr, "ssh -o StrictHostKeyChecking=no -p 22 user@test.example.com \"/opt/bin/redeploy.sh\"") { t.Error("Expect script to contains ssh command") } }