test(windows): order private fixture protection

This commit is contained in:
2026-08-18 13:42:14 +02:00
parent aee5863112
commit fa197498f2
3 changed files with 11 additions and 10 deletions
@@ -39,8 +39,9 @@ func TestStageArchiveProtectsWindowsStagingArtifactsWithOwnerOnlyACLs(t *testing
t.Fatal(err)
}
staged.file = nil
if err := safeio.ValidatePrivateRegular(staged.path); err != nil {
t.Fatalf("staged archive ACL = %v, want owner-only", err)
contents, found, err := staged.parent.ReadRegular(staged.name, 1<<20)
if err != nil || !found || len(contents) == 0 {
t.Fatalf("retained staged archive read = found:%t bytes:%d error:%v, want owner-only regular", found, len(contents), err)
}
}