mirror of
https://github.com/appleboy/drone-ssh.git
synced 2025-05-09 18:23:21 +08:00
fix: testing
This commit is contained in:
parent
1adb039393
commit
fb61e60ede
@ -6,13 +6,13 @@ import (
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
||||
func TestMissingHostOrUserName(t *testing.T) {
|
||||
func TestMissingHostOrUser(t *testing.T) {
|
||||
plugin := Plugin{}
|
||||
|
||||
err := plugin.Exec()
|
||||
|
||||
assert.NotNil(t, err)
|
||||
assert.Equal(t, missingHostOrUserName, err.Error())
|
||||
assert.Equal(t, missingHostOrUser, err.Error())
|
||||
}
|
||||
|
||||
func TestMissingKeyOrPassword(t *testing.T) {
|
||||
|
Loading…
Reference in New Issue
Block a user