test: fix flaky timing assertion in image-handler test

Changed processingTime assertion from toBeGreaterThan(0) to
toBeGreaterThanOrEqual(0) to handle very fast processing on
high-performance systems where timing resolution might be 0ms.
This commit is contained in:
David Snelling 2025-11-04 13:07:23 -08:00
parent 9db67d0148
commit 087c57d089

View file

@ -180,7 +180,7 @@ describe('ImageHandler (v5.2.0)', () => {
const result = await handler.process(imageBuffer)
expect(result.metadata.processingTime).toBeGreaterThan(0)
expect(result.metadata.processingTime).toBeGreaterThanOrEqual(0)
expect(result.metadata.processingTime).toBeLessThan(5000)
})