Browse Source

Fix FS.test.js

pull/443/head
jeromewu 5 years ago
parent
commit
d6e434338f
  1. 5
      tests/FS.test.js

5
tests/FS.test.js

@ -1,4 +1,5 @@
const { createWorker } = Tesseract; const { createWorker } = Tesseract;
const FS_WAIT = 500;
const worker = createWorker(OPTIONS); const worker = createWorker(OPTIONS);
before(function cb() { before(function cb() {
this.timeout(0); this.timeout(0);
@ -16,7 +17,7 @@ describe('FS', async () => {
const { data } = await worker.FS('readFile', [path]); const { data } = await worker.FS('readFile', [path]);
await worker.FS('unlink', [path]); await worker.FS('unlink', [path]);
expect(data).to.be(SIMPLE_TEXT); expect(data).to.be(SIMPLE_TEXT);
}, 200); }, FS_WAIT);
}); });
}).timeout(TIMEOUT); }).timeout(TIMEOUT);
@ -30,7 +31,7 @@ describe('FS', async () => {
const { data } = await worker.readText(path); const { data } = await worker.readText(path);
await worker.removeFile(path); await worker.removeFile(path);
expect(data).to.be(SIMPLE_TEXT); expect(data).to.be(SIMPLE_TEXT);
}, 200); }, FS_WAIT);
}); });
}).timeout(TIMEOUT); }).timeout(TIMEOUT);
}); });

Loading…
Cancel
Save