mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-10-21 08:22:20 +02:00
Fix duplicate ACPX skills cleanup in test teardown (#16937)
This commit is contained in:
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(
|
||||
|
||||
Reference in new issue
Block a user