From 6d0c9e34afb9ecec856492d2263ab79046438943 Mon Sep 17 00:00:00 2001 From: Anderson Queiroz Date: Fri, 13 Oct 2023 12:53:37 +0200 Subject: [PATCH] use filepath --- .../application/upgrade/artifact/download/fs/verifier_test.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/internal/pkg/agent/application/upgrade/artifact/download/fs/verifier_test.go b/internal/pkg/agent/application/upgrade/artifact/download/fs/verifier_test.go index fc255dc7b7f..e432af7665a 100644 --- a/internal/pkg/agent/application/upgrade/artifact/download/fs/verifier_test.go +++ b/internal/pkg/agent/application/upgrade/artifact/download/fs/verifier_test.go @@ -10,7 +10,6 @@ import ( "crypto/sha512" "fmt" "os" - "path" "path/filepath" "testing" "time" @@ -73,7 +72,7 @@ func TestFetchVerify(t *testing.T) { err := prepareFetchVerifyTests(dropPath, targetPath, filename, targetFilePath, hashTargetFilePath) require.NoError(t, err) - pgp, err := os.ReadFile(path.Join(dropPath, "public-key.pgp")) + pgp, err := os.ReadFile(filepath.Join(dropPath, "public-key.pgp")) require.NoError(t, err, "could not read public PGP key") verifier, err := NewVerifier(log, config, pgp) require.NoError(t, err, "could not create the verifier")