Fix duplicate ACPX skills cleanup in test teardown (#16937)

This commit is contained in:
Nicky Leach authored and GitHub committed 2026-10-20 07:44:28 -07:00
1 parent 813e808af4
commit 34be1b831b
1 file changed
+2 -2
@@ -189,9 +189,9 @@ afterEach(async () => {
// Release every sealed skills tree before the plain `rm` below. `rm` does
// not restore write permission, so a tree still sealed at this point would
// otherwise fail with EACCES and hide the real test failure.
// Cancelled opens can reuse one home. Parallel cleanup must visit it once.
await Promise.all(
materializedSkillsHomes
.splice(0)
[...new Set(materializedSkillsHomes.splice(0))]
.map((skillsHome) => releaseMaterializedNativeRuntimeSkills(skillsHome)),
);
await Promise.all(