You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am receiving and unlink error as the test is exiting. $ electron-mocha ./build/mocha.js --renderer
Here is the output at the end of the test:
{ Error: EBUSY: resource busy or locked, unlink 'C:\Users\ADMINI~1\AppData\Local\Temp\electron-mocha-FINsw6\Cookies'
at Error (native)
at Object.fs.unlinkSync (fs.js:1099:18)
at rimrafSync (C:\Users\***\Desktop\***\node_modules\rimraf\rimraf.js:295:17)
at C:\Users\***\Desktop\***\node_modules\rimraf\rimraf.js:330:5
at Array.forEach (native)
at rmkidsSync (C:\Users\***\Desktop\***\node_modules\rimraf\rimraf.js:329:26)
at rmdirSync (C:\Users\***\Desktop\***\node_modules\rimraf\rimraf.js:322:7)
at Function.rimrafSync [as sync] (C:\Users\***\Desktop\***\node_modules\rimraf\rimraf.js:293:9)
at Object.removeSync (C:\Users\***\Desktop\***\node_modules\fs-extra\lib\remove\index.js:4:17)
at App.app.on (C:\Users\***\Desktop\***\node_modules\electron-mocha\index.js:28:6)
errno: -4082,
code: 'EBUSY',
syscall: 'unlink',
path: 'C:\\Users\\ADMINI~1\\AppData\\Local\\Temp\\electron-mocha-FINsw6\\Cookies'
}
I previously was using electron-mocha 2.1.0 without errors so I'm not sure which version is the culprit (unless the culprit is me being a gumby)
I've seen this unlink issue was before and remembered that it was resolved in 1.2.0 but it seemed to have popped up again.
I know for main processes you have to explicitly exit but I'm under the assumption the renderer processes will exit on their own.
The text was updated successfully, but these errors were encountered:
Are you testing any code that might be opening windows (even when they're not visible)?
We had to change force closing windows for multiple reasons (e.g., see #60 for context); open windows are the main reason I've seen for Windows failing when removing the temp dir.
Environment:
I am receiving and unlink error as the test is exiting.
$ electron-mocha ./build/mocha.js --renderer
Here is the output at the end of the test:
I previously was using electron-mocha 2.1.0 without errors so I'm not sure which version is the culprit (unless the culprit is me being a gumby)
I've seen this unlink issue was before and remembered that it was resolved in 1.2.0 but it seemed to have popped up again.
I know for main processes you have to explicitly exit but I'm under the assumption the renderer processes will exit on their own.
The text was updated successfully, but these errors were encountered: