mirror of
https://github.com/appleboy/drone-ssh.git
synced 2026-06-04 18:24:01 +08:00
fix(test): replace deprecated port.Int() with int(port.Num())
- replace port.Int() with int(port.Num()) to match updated moby network.Port API
This commit is contained in:
+1
-1
@@ -994,7 +994,7 @@ func runSSHContainerTest(t *testing.T, cfg SSHTestConfig) {
|
|||||||
pluginCfg := Config{
|
pluginCfg := Config{
|
||||||
Host: []string{host},
|
Host: []string{host},
|
||||||
Username: "testuser",
|
Username: "testuser",
|
||||||
Port: port.Int(),
|
Port: int(port.Num()),
|
||||||
Script: cfg.Script,
|
Script: cfg.Script,
|
||||||
CommandTimeout: cfg.CommandTimeout,
|
CommandTimeout: cfg.CommandTimeout,
|
||||||
UseInsecureCipher: cfg.InsecureCipher,
|
UseInsecureCipher: cfg.InsecureCipher,
|
||||||
|
|||||||
Reference in New Issue
Block a user