From d6e434338fe459273d2c42085a7495ee13293d5c Mon Sep 17 00:00:00 2001 From: jeromewu Date: Fri, 20 Mar 2020 02:16:19 +0000 Subject: [PATCH] Fix FS.test.js --- tests/FS.test.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/FS.test.js b/tests/FS.test.js index bc640ea..b20dccc 100644 --- a/tests/FS.test.js +++ b/tests/FS.test.js @@ -1,4 +1,5 @@ const { createWorker } = Tesseract; +const FS_WAIT = 500; const worker = createWorker(OPTIONS); before(function cb() { this.timeout(0); @@ -16,7 +17,7 @@ describe('FS', async () => { const { data } = await worker.FS('readFile', [path]); await worker.FS('unlink', [path]); expect(data).to.be(SIMPLE_TEXT); - }, 200); + }, FS_WAIT); }); }).timeout(TIMEOUT); @@ -30,7 +31,7 @@ describe('FS', async () => { const { data } = await worker.readText(path); await worker.removeFile(path); expect(data).to.be(SIMPLE_TEXT); - }, 200); + }, FS_WAIT); }); }).timeout(TIMEOUT); });