From 3ad3fcdce9ce90a0a49091cc0ab976abac21e8e0 Mon Sep 17 00:00:00 2001 From: "Babak K. Shandiz" Date: Mon, 3 Nov 2025 15:32:44 +0000 Subject: [PATCH] fix: resolve `gocritic` issue Signed-off-by: Babak K. Shandiz --- pkg/cmd/browse/browse_test.go | 2 +- pkg/cmd/run/download/download_test.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/cmd/browse/browse_test.go b/pkg/cmd/browse/browse_test.go index cceba045a..b38fa57f0 100644 --- a/pkg/cmd/browse/browse_test.go +++ b/pkg/cmd/browse/browse_test.go @@ -696,7 +696,7 @@ func Test_parsePathFromFileArg(t *testing.T) { { name: "go to root of repository", currentDir: "pkg/cmd/browse/", - fileArg: filepath.Join("../../../"), + fileArg: filepath.FromSlash("../../../"), expectedPath: "", }, { diff --git a/pkg/cmd/run/download/download_test.go b/pkg/cmd/run/download/download_test.go index e0f5eb781..a90ae74b5 100644 --- a/pkg/cmd/run/download/download_test.go +++ b/pkg/cmd/run/download/download_test.go @@ -527,7 +527,7 @@ func Test_runDownload(t *testing.T) { }, }, expectedFiles: []string{ - filepath.Join("non-artifact-2-file"), + "non-artifact-2-file", }, }, { @@ -681,7 +681,7 @@ func Test_runDownload(t *testing.T) { }) }, expectedFiles: []string{ - filepath.Join("artifact-2-file"), + "artifact-2-file", }, }, {