From 85b60705a26d4a0326fcd525905c1cbb7a8f8f44 Mon Sep 17 00:00:00 2001 From: Yuhui Luo <92632263+lyh7c00@users.noreply.github.com> Date: Tue, 25 Aug 2026 21:53:51 +0800 Subject: [PATCH] test(plugin): make expected paths OS-agnostic in installer tests Build expected paths with filepath.Join so the TestPath assertions pass on Windows as well as Unix. Signed-off-by: Yuhui Luo <92632263+lyh7c00@users.noreply.github.com> --- internal/plugin/installer/base_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/plugin/installer/base_test.go b/internal/plugin/installer/base_test.go index 483f49299..0f1b74160 100644 --- a/internal/plugin/installer/base_test.go +++ b/internal/plugin/installer/base_test.go @@ -34,15 +34,15 @@ func TestPath(t *testing.T) { }, { source: "https://github.com/jkroepke/helm-secrets", helmPluginsDir: "/helm/data/plugins", - expectPath: "/helm/data/plugins/helm-secrets", + expectPath: filepath.Join("/helm/data/plugins", "helm-secrets"), }, { source: "https://github.com/jkroepke/helm-secrets", helmPluginsDir: strings.Join([]string{"/helm/data/plugins", "/helm/data/extra"}, string(filepath.ListSeparator)), - expectPath: "/helm/data/plugins/helm-secrets", + expectPath: filepath.Join("/helm/data/plugins", "helm-secrets"), }, { source: "https://github.com/jkroepke/helm-secrets", helmPluginsDir: string(filepath.ListSeparator) + "/helm/data/plugins", - expectPath: "/helm/data/plugins/helm-secrets", + expectPath: filepath.Join("/helm/data/plugins", "helm-secrets"), }, }