From faabdc094a52c1955afeb0c328afe4100e0c4569 Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Thu, 16 Apr 2026 12:19:32 +0800 Subject: [PATCH] fix(test): replace deprecated port.Int() with int(port.Num()) - replace port.Int() with int(port.Num()) to match updated moby network.Port API --- plugin_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin_test.go b/plugin_test.go index 47f32ac..f463664 100644 --- a/plugin_test.go +++ b/plugin_test.go @@ -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,