Skip to content

Commit 5001fb6

Browse files
gxklclaude
andcommitted
test(tegg): align boot-hook timeouts with the root config values
20s matches the root hookTimeout the tegg projects fail to inherit; BundledAppBoot gets 3x for its two boots plus manifest generation. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent 70901b2 commit 5001fb6

2 files changed

Lines changed: 7 additions & 5 deletions

File tree

tegg/plugin/aop/test/aop.test.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,15 @@ describe('plugin/aop/test/aop.test.ts', () => {
1414
return mm.restore();
1515
});
1616

17-
// App boot can exceed the default 10s hook timeout on slow Windows runners.
17+
// App boot exceeds the 10s vitest default on slow Windows runners; the tegg
18+
// projects do not inherit the root config's 20s hookTimeout, so state it
19+
// explicitly with the same value.
1820
beforeAll(async () => {
1921
app = mm.app({
2022
baseDir: path.join(import.meta.dirname, 'fixtures/apps/aop-app'),
2123
});
2224
await app.ready();
23-
}, 60_000);
25+
}, 20_000);
2426

2527
it('module aop should work', async () => {
2628
app.mockCsrf();

tegg/plugin/tegg/test/BundledAppBoot.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,9 @@ describe('plugin/tegg/test/BundledAppBoot.test.ts', () => {
6565
app = mm.app({ baseDir, mode: 'single', loaderFS } as Parameters<typeof mm.app>[0]);
6666
await app.ready();
6767
bootFallbackGlobTargets = [...fallbackGlobTargets];
68-
// The double app boot above can exceed the default 10s hook timeout on
69-
// slow Windows runners.
70-
}, 120_000);
68+
// TWO app boots plus manifest generation: 3x the root config's 20s
69+
// single-boot hookTimeout (which tegg projects do not inherit).
70+
}, 60_000);
7171

7272
afterEach(async () => {
7373
return mm.restore();

0 commit comments

Comments
 (0)