Use fs.unlinkSync
instead of fs.unlink
when removing eq.log
This is necessary because Node.js crashes when `fs.unlink` is called without a callback function.
This commit is contained in:
parent
c5d5d29b03
commit
4f8dae683e
@ -207,7 +207,7 @@ function startRefTest(masterMode, showRefImages) {
|
||||
}
|
||||
|
||||
if (fs.existsSync(eqLog)) {
|
||||
fs.unlink(eqLog);
|
||||
fs.unlinkSync(eqLog);
|
||||
}
|
||||
if (fs.existsSync(testResultDir)) {
|
||||
testUtils.removeDirSync(testResultDir);
|
||||
|
Loading…
Reference in New Issue
Block a user