Skip to content

Commit 7560ad1

Browse files
committed
fix non_root
1 parent 12d6cd2 commit 7560ad1

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

system-tests/test/non_root_read_only_fs_spec.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,14 @@ describe('e2e readonly fs', function () {
2222
}
2323
}
2424

25-
const onRun = (exec) => {
26-
Fixtures.scaffold('read-only-project-root')
25+
const onRun = async (exec) => {
26+
Fixtures.scaffoldProject('read-only-project-root')
27+
await Fixtures.scaffoldCommonNodeModules()
2728
chmodr(projectPath, 0o500)
2829

29-
return exec().finally(() => {
30-
chmodr(projectPath, 0o777)
31-
})
30+
await exec()
31+
32+
chmodr(projectPath, 0o777)
3233
}
3334

3435
systemTests.it('warns when unable to write to disk', {

0 commit comments

Comments
 (0)