fix(windows): protect lifecycle and backup state
This commit is contained in:
@@ -820,6 +820,9 @@ func privateTestRoot(t *testing.T) string {
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
if err := safeio.ProtectPrivateDirectory(root); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
t.Cleanup(func() { _ = os.RemoveAll(root) })
|
||||
return root
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user