Skip to content

Commit

Permalink
Increase test timeouts
Browse files Browse the repository at this point in the history
  • Loading branch information
cyrilwanner committed Jul 22, 2020
1 parent 5265968 commit 010d1f8
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions packages/mozjpeg/__tests__/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ describe('mozjpeg', () => {
// test all image sizes
['tiny', 'small', 'medium', 'large'].forEach((size) => {
it(`encodes a ${size} image`, async () => {
jest.setTimeout(60000);

const {
data,
info: { width, height, channels },
Expand Down
2 changes: 1 addition & 1 deletion packages/mozjpeg/__tests__/performance.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ describe('mozjpeg performance', () => {
});

it('encodes many images', async () => {
jest.setTimeout(60000);
jest.setTimeout(600000);
process.setMaxListeners(0);

const {
Expand Down
2 changes: 1 addition & 1 deletion packages/oxipng/__tests__/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ describe('oxipng', () => {
// test all image sizes
['tiny', 'small', 'medium', 'large'].forEach((size) => {
it(`encodes a ${size} image`, async () => {
jest.setTimeout(20000);
jest.setTimeout(60000);

const {
data,
Expand Down
2 changes: 1 addition & 1 deletion packages/oxipng/__tests__/performance.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ describe('oxipng performance', () => {
});

it('encodes many images', async () => {
jest.setTimeout(60000);
jest.setTimeout(600000);
process.setMaxListeners(0);

const { data } = await getImage('images/small.png');
Expand Down

0 comments on commit 010d1f8

Please sign in to comment.