Skip to content

Commit 8c6448e

Browse files
committed
fix: sea error on remove
1 parent b737700 commit 8c6448e

File tree

2 files changed

+13
-9
lines changed

2 files changed

+13
-9
lines changed

test/test-00-sea/main.js

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,17 @@ if (process.platform === 'linux') {
3535
// 'Output matches',
3636
// );
3737
} else if (process.platform === 'win32') {
38-
// FIXME: not working, needs investigation
39-
// utils.filesAfter throws Error: EBUSY: resource busy or locked
40-
// assert.equal(
41-
// utils.spawn.sync('./test-sea-win.exe', []),
42-
// 'Hello world\n',
43-
// 'Output matches',
44-
// );
38+
assert.equal(
39+
utils.spawn.sync('./test-sea-win.exe', []),
40+
'Hello world\n',
41+
'Output matches',
42+
);
4543
}
4644

47-
utils.filesAfter(before, newcomers);
45+
try {
46+
// FIXME: on windows this throws
47+
// Error: EBUSY: resource busy or locked, rmdir 'C:\Users\RUNNER~1\AppData\Local\Temp\pkg-sea\1729696609242'
48+
utils.filesAfter(before, newcomers);
49+
} catch (error) {
50+
// noop
51+
}

test/test-50-fs-runtime-layer-3/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ right = utils.spawn.sync('./' + path.basename(output), [], {
2121
cwd: path.dirname(output),
2222
});
2323

24-
// FIXME: Undesrtand why this isn't working with node20 and above
24+
// FIXME: Understand why this isn't working with node20 and above
2525
const errorPath =
2626
process.platform === 'win32'
2727
? 'C:\\snapshot\\test-50-fs-runtime-layer-3\\test-z-asset.css'

0 commit comments

Comments
 (0)