From 2312cfb1460f68366cfd9cb92c1a97e720153cc7 Mon Sep 17 00:00:00 2001 From: ejahnGithub Date: Fri, 30 May 2025 10:07:18 -0700 Subject: [PATCH] clean the path --- pkg/cmd/release/verify-asset/verify-asset_test.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pkg/cmd/release/verify-asset/verify-asset_test.go b/pkg/cmd/release/verify-asset/verify-asset_test.go index 81cf73551..1760d4a05 100644 --- a/pkg/cmd/release/verify-asset/verify-asset_test.go +++ b/pkg/cmd/release/verify-asset/verify-asset_test.go @@ -7,6 +7,7 @@ import ( "github.com/cli/cli/v2/pkg/cmd/attestation/api" "github.com/cli/cli/v2/pkg/cmd/attestation/io" + "github.com/cli/cli/v2/pkg/cmd/attestation/test" "github.com/cli/cli/v2/pkg/cmd/attestation/verification" "github.com/cli/cli/v2/pkg/cmd/release/attestation" "github.com/cli/cli/v2/pkg/cmdutil" @@ -107,7 +108,7 @@ func Test_verifyAssetRun_Success(t *testing.T) { opts := &attestation.AttestOptions{ TagName: tagName, - AssetFilePath: "../../attestation/test/data/github_release_artifact.zip", + AssetFilePath: test.NormalizeRelativePath("../../attestation/test/data/github_release_artifact.zip"), Repo: "owner/repo", Owner: "owner", Limit: 10, @@ -141,7 +142,7 @@ func Test_verifyAssetRun_Failed_With_Wrong_tag(t *testing.T) { opts := &attestation.AttestOptions{ TagName: tagName, - AssetFilePath: "../../attestation/test/data/github_release_artifact.zip", + AssetFilePath: test.NormalizeRelativePath("../../attestation/test/data/github_release_artifact.zip"), Repo: "owner/repo", Owner: "owner", Limit: 10, @@ -175,7 +176,7 @@ func Test_verifyAssetRun_Failed_With_Invalid_Artifact(t *testing.T) { opts := &attestation.AttestOptions{ TagName: tagName, - AssetFilePath: "../../attestation/test/data/github_release_artifact_invalid.zip", + AssetFilePath: test.NormalizeRelativePath("../../attestation/test/data/github_release_artifact.zip"), Repo: "owner/repo", Owner: "owner", Limit: 10,