mirror of
https://github.com/mozilla/pdf.js.git
synced 2026-02-08 00:21:11 +01:00
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…
x
Reference in New Issue
Block a user