Skip to content

Commit

Permalink
test: Increase timeout for webpack (#1924)
Browse files Browse the repository at this point in the history
  • Loading branch information
d-goog authored Jan 24, 2025
1 parent c59f8b4 commit e86f862
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions system-test/test.kitchen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ const pkg = require('../../package.json');

let stagingDir: string;

/**
* 2 minutes
*/
const BUILD_TEST_TIMEOUT_MS = 2 * 60_000;

/**
* Spawns and runs a command asynchronously.
*
Expand Down Expand Up @@ -87,13 +92,15 @@ describe('pack and install', () => {
// npm, once in a blue moon, fails during pack process. If this happens,
// we should be safe to retry.
this.retries(3);
this.timeout(40000);
this.timeout(BUILD_TEST_TIMEOUT_MS);

await packAndInstall();
});

it('should be able to webpack the library', async function () {
this.retries(3);
this.timeout(40000);
this.timeout(BUILD_TEST_TIMEOUT_MS);

await packAndInstall();
// we expect npm install is executed in the before hook
await run('npx', ['webpack'], {cwd: `${stagingDir}/`});
Expand Down

0 comments on commit e86f862

Please sign in to comment.