From c6791474e197cf592a5a6bfda1dd88daa35d3bba Mon Sep 17 00:00:00 2001 From: Yugo Kobayashi Date: Fri, 24 Jul 2026 22:51:07 +0900 Subject: [PATCH] test(version): clarify test binary build info Signed-off-by: Yugo Kobayashi --- internal/version/clientgo_test.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/internal/version/clientgo_test.go b/internal/version/clientgo_test.go index 33a21f222..c80b21a29 100644 --- a/internal/version/clientgo_test.go +++ b/internal/version/clientgo_test.go @@ -27,8 +27,9 @@ import ( ) func TestK8sClientGoModVersion(t *testing.T) { - // Unfortunately, test builds don't include debug info / module info - // So we expect "K8sIOClientGoModVersion" to return error + // Generated test binaries omit dependency modules from embedded build info, + // even when the package under test imports them. The built-binary test below + // covers the normal executable path where dependency modules are present. _, err := K8sIOClientGoModVersion() require.ErrorContains(t, err, "k8s.io/client-go not found in build info") }