From 908ae7324166863259f807d9a5ec59d0f3a91fb8 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Date: Sun, 29 Nov 2026 14:14:15 +0100 Subject: [PATCH] test(triggers): retry the npm fixture cleanup while a launched process still holds cli.exe (#1375) --- test/trigger-name-transport-npm-windows.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/trigger-name-transport-npm-windows.test.js b/test/trigger-name-transport-npm-windows.test.js index 9b7db25fc..bd2b8de06 100644 --- a/test/trigger-name-transport-npm-windows.test.js +++ b/test/trigger-name-transport-npm-windows.test.js @@ -56,7 +56,7 @@ for (const shell of shells) { assert.equal(fs.existsSync(output + '.cmd'), false, 'npm batch shim must not run'); assert.equal(fs.existsSync(output + '.ps1'), false, 'npm PowerShell shim must not run'); } finally { - fs.rmSync(root, { recursive: true, force: true }); + fs.rmSync(root, { recursive: true, force: true, maxRetries: 10, retryDelay: 100 }); } }); }