From 96703ca57a6e5dbd4a8a9b61dd0c72bb3e7171ba Mon Sep 17 00:00:00 2001 From: Tobias Koppers Date: Fri, 29 Nov 2019 13:01:04 +0100 Subject: [PATCH] fix race in test case --- test/Compiler-caching.test.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/test/Compiler-caching.test.js b/test/Compiler-caching.test.js index 9c3df9488..e9b448f02 100644 --- a/test/Compiler-caching.test.js +++ b/test/Compiler-caching.test.js @@ -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 {