Skip to content

Commit

Permalink
s/snaptest: use os.Symlink rather than atomic variant in test code
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewphelpsj committed Jun 18, 2024
1 parent bfc4a0d commit a06dffb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion snap/snaptest/snaptest.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ func MockComponentCurrent(c *check.C, yamlText string, info *snap.Info, csi snap
linkDest, err := filepath.Rel(filepath.Dir(link), mountDir)
c.Assert(err, check.IsNil)

err = osutil.AtomicSymlink(linkDest, link)
err = os.Symlink(linkDest, link)
c.Assert(err, check.IsNil)

return ci
Expand Down

0 comments on commit a06dffb

Please sign in to comment.