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:
Tim van der Meij 2018-05-28 23:48:20 +02:00
parent c5d5d29b03
commit 4f8dae683e
No known key found for this signature in database
GPG Key ID: 8C3FD2925A5F2762

View File

@ -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);