Skip to content

Commit 11aad4a

Browse files
committed
Synchronous unlink in test
1 parent 0deda06 commit 11aad4a

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

test/lib.test.js

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -278,13 +278,10 @@ describe('Test duration in description', function () {
278278
});
279279
});
280280

281-
after(function (done) {
281+
after(function () {
282282
queue.pile = []; // In case a job was added
283-
fs.unlink(config.dbFile, err => {
284-
config.dbFile = _dbFile;
285-
if (err) throw err;
286-
done();
287-
});
283+
fs.unlinkSync(config.dbFile);
284+
config.dbFile = _dbFile;
288285
});
289286

290287
it('expect duration in description', async function () {

0 commit comments

Comments
 (0)