Skip to content

Commit

Permalink
backport of commit 794eb8b (#19332)
Browse files Browse the repository at this point in the history
Co-authored-by: Christopher Swenson <[email protected]>
  • Loading branch information
hc-github-team-secure-vault-core and Christopher Swenson authored Feb 23, 2023
1 parent f956cf5 commit 5b2cd6d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions vault/testing.go
Original file line number Diff line number Diff line change
Expand Up @@ -540,6 +540,9 @@ func TestAddTestPlugin(t testing.T, c *Core, name string, pluginType consts.Plug

// Copy over the file to the temp dir
dst := filepath.Join(tempDir, fileName)

// delete the file first to avoid notary failures in macOS
_ = os.Remove(dst) // ignore error
out, err := os.OpenFile(dst, os.O_WRONLY|os.O_CREATE|os.O_TRUNC, fi.Mode())
if err != nil {
t.Fatal(err)
Expand Down

0 comments on commit 5b2cd6d

Please sign in to comment.