Chore: Try to fix random test timeout

pull/9711/head^2
Laurent Cozic 2024-01-13 19:10:34 +00:00
parent 7d68dafaed
commit 6f83ccd044
1 changed files with 6 additions and 1 deletions

View File

@ -75,7 +75,12 @@ describe('OcrService', () => {
expect(processedResource2.updated_time).toBeGreaterThan(resource2.updated_time);
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 () => {
const { resource } = await createNoteAndResource({ path: `${ocrSampleDir}/dummy.pdf` });