1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-24 10:27:10 +02:00

Chore: Try to fix random test timeout

This commit is contained in:
Laurent Cozic 2024-01-13 19:10:34 +00:00
parent 7d68dafaed
commit 6f83ccd044

View File

@ -75,7 +75,12 @@ describe('OcrService', () => {
expect(processedResource2.updated_time).toBeGreaterThan(resource2.updated_time); expect(processedResource2.updated_time).toBeGreaterThan(resource2.updated_time);
await service.dispose(); await service.dispose();
});
// On CI these tests can randomly throw the error "Exceeded timeout of
// 90000 ms for a test.". So for now increase the timeout and if that's
// not sufficient it means the test is simply stuck, and we should use
// `jest.retryTimes(2)`
}, 60000 * 5);
it('should process PDF resources', async () => { it('should process PDF resources', async () => {
const { resource } = await createNoteAndResource({ path: `${ocrSampleDir}/dummy.pdf` }); const { resource } = await createNoteAndResource({ path: `${ocrSampleDir}/dummy.pdf` });