mirror of
https://github.com/appleboy/drone-ssh.git
synced 2025-07-02 21:52:51 +08:00
fixed unit test
This commit is contained in:
parent
a1294ae508
commit
8b824ce040
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user