mirror of
https://github.com/badlogic/pi-mono.git
synced 2026-11-05 23:37:25 +00:00
fix(durable): allow image conversion tests more time on CI
This commit is contained in:
parent
edb2eb966d
commit
cd8bdf7518
1 changed files with 2 additions and 1 deletions
|
|
@ -318,6 +318,7 @@ describe("read of images, with the Photon image processor", () => {
|
|||
]);
|
||||
});
|
||||
|
||||
// Multiple full-image encodes can exceed Vitest's 5s default on shared CI runners.
|
||||
it("re-encodes a PNG too large for the byte limit as JPEG at its size, and shrinks it when that is not enough", async () => {
|
||||
const result = await read("big.png", noisyPng(1100, 1100), { images: processor });
|
||||
const jpeg = onlyImage(result);
|
||||
|
|
@ -330,7 +331,7 @@ describe("read of images, with the Photon image processor", () => {
|
|||
expect(shrunk!.data.length).toBeLessThanOrEqual(tight.maxBytes);
|
||||
expect(shrunk!.resized?.from).toEqual({ width: 2000, height: 2000 });
|
||||
expect(shrunk!.resized!.to.width).toBeLessThan(2000);
|
||||
});
|
||||
}, 60_000);
|
||||
|
||||
it("keeps at least one pixel on each side of an extreme aspect ratio", async () => {
|
||||
const result = await processor.prepare(encode(6000, 2, "png"), "image/png", DEFAULT_IMAGE_LIMITS);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue