fixed unit test

This commit is contained in:
Brad Rydzewski 2015-10-30 11:12:29 -07:00
parent a1294ae508
commit 8b824ce040

View File

@ -30,14 +30,14 @@ func TestRun(t *testing.T) {
params := &Params{
Commands: []string{"whoami", "time", "ps -ax"},
Login: user,
Host: host,
Host: StrSlice{[]string{host}},
}
keys := &plugin.Keypair{
Private: string(out),
}
err = run(keys, params)
err = run(keys, params, host)
if err != nil {
t.Errorf("Unable to run SSH commands. %s.", err)
}