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{ params := &Params{
Commands: []string{"whoami", "time", "ps -ax"}, Commands: []string{"whoami", "time", "ps -ax"},
Login: user, Login: user,
Host: host, Host: StrSlice{[]string{host}},
} }
keys := &plugin.Keypair{ keys := &plugin.Keypair{
Private: string(out), Private: string(out),
} }
err = run(keys, params) err = run(keys, params, host)
if err != nil { if err != nil {
t.Errorf("Unable to run SSH commands. %s.", err) t.Errorf("Unable to run SSH commands. %s.", err)
} }