mirror of
https://github.com/appleboy/drone-ssh.git
synced 2026-06-04 10:15:07 +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{
|
||||
Host: []string{host},
|
||||
Username: "testuser",
|
||||
Port: port.Int(),
|
||||
Port: int(port.Num()),
|
||||
Script: cfg.Script,
|
||||
CommandTimeout: cfg.CommandTimeout,
|
||||
UseInsecureCipher: cfg.InsecureCipher,
|
||||
|
||||
Reference in New Issue
Block a user