mirror of https://github.com/webpack/webpack.git
fix race in test case
This commit is contained in:
parent
83dff1185e
commit
96703ca57a
|
|
@ -111,12 +111,8 @@ describe("Compiler (caching)", () => {
|
||||||
|
|
||||||
// Copy over file since we"ll be modifying some of them
|
// Copy over file since we"ll be modifying some of them
|
||||||
fs.mkdirSync(fixturePath);
|
fs.mkdirSync(fixturePath);
|
||||||
fs.createReadStream(path.join(__dirname, "fixtures", "a.js")).pipe(
|
fs.copyFileSync(path.join(__dirname, "fixtures", "a.js"), aFilepath);
|
||||||
fs.createWriteStream(aFilepath)
|
fs.copyFileSync(path.join(__dirname, "fixtures", "c.js"), cFilepath);
|
||||||
);
|
|
||||||
fs.createReadStream(path.join(__dirname, "fixtures", "c.js")).pipe(
|
|
||||||
fs.createWriteStream(cFilepath)
|
|
||||||
);
|
|
||||||
|
|
||||||
fixtureCount++;
|
fixtureCount++;
|
||||||
return {
|
return {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue