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:
parent
9db67d0148
commit
087c57d089
1 changed files with 1 additions and 1 deletions
|
|
@ -180,7 +180,7 @@ describe('ImageHandler (v5.2.0)', () => {
|
||||||
|
|
||||||
const result = await handler.process(imageBuffer)
|
const result = await handler.process(imageBuffer)
|
||||||
|
|
||||||
expect(result.metadata.processingTime).toBeGreaterThan(0)
|
expect(result.metadata.processingTime).toBeGreaterThanOrEqual(0)
|
||||||
expect(result.metadata.processingTime).toBeLessThan(5000)
|
expect(result.metadata.processingTime).toBeLessThan(5000)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue