Skip to content

Commit e0f8851

Browse files
committed
fix(test): make teardown spawning synchronous
Hopefully this resolves funny issues arising from 2 process trying to format the same file at the same time.
1 parent 6c9bbc6 commit e0f8851

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/linter-provider.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ suite('Linter integration', () => {
7878
await config.update('linter.includePaths', oldVals, false);
7979
// We have to reset the formatting of the files, for some reason updating
8080
// the config breaks any the formatting style.
81-
cp.spawn('npm', ['run', 'format'], { cwd: path.resolve(root, '../../') });
81+
cp.spawnSync('npm', ['run', 'format'], { cwd: path.resolve(root, '../../') });
8282
});
8383
});
8484

@@ -113,7 +113,7 @@ suite('fypp Linter integration', () => {
113113
await config.update(`linter.fypp.enabled`, false, false);
114114
// We have to reset the formatting of the files, for some reason updating
115115
// the config breaks any the formatting style.
116-
cp.spawn('npm', ['run', 'format'], { cwd: path.resolve(root, '../../') });
116+
cp.spawnSync('npm', ['run', 'format'], { cwd: path.resolve(root, '../../') });
117117
});
118118
});
119119

0 commit comments

Comments
 (0)