fix race in test case

This commit is contained in:
Tobias Koppers 2019-11-29 13:01:04 +01:00
parent 83dff1185e
commit 96703ca57a
1 changed files with 2 additions and 6 deletions

View File

@ -111,12 +111,8 @@ describe("Compiler (caching)", () => {
// Copy over file since we"ll be modifying some of them
fs.mkdirSync(fixturePath);
fs.createReadStream(path.join(__dirname, "fixtures", "a.js")).pipe(
fs.createWriteStream(aFilepath)
);
fs.createReadStream(path.join(__dirname, "fixtures", "c.js")).pipe(
fs.createWriteStream(cFilepath)
);
fs.copyFileSync(path.join(__dirname, "fixtures", "a.js"), aFilepath);
fs.copyFileSync(path.join(__dirname, "fixtures", "c.js"), cFilepath);
fixtureCount++;
return {