Merge pull request #21 from TieWay59/fix-test-ssh

Fix:  not enough arguments in call to connect
This commit is contained in:
Feng_Qi 2023-03-11 22:37:27 +08:00 committed by GitHub
commit 3f32c3a325
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -16,9 +16,13 @@ const (
key = "../server.key"
)
// Tests the SSH functionality of the package.
//
// It requires manual input of the local SSH private key path into the key
// variable, and the remote address into the ip variable.
func Test_SSH(t *testing.T) {
var cipherList []string
session, err := connect(username, password, ip, key, port, cipherList)
session, err := connect(username, password, ip, key, port, cipherList, nil)
if err != nil {
t.Error(err)
return