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:
Bo-Yi Wu
2026-04-16 12:19:32 +08:00
parent 3e1551c174
commit faabdc094a
+1 -1
View File
@@ -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,