Skip to content

Commit 70901b2

Browse files
gxklclaude
andcommitted
test(tegg): explicit boot-hook timeouts for slow Windows runners
The tegg vitest projects do not inherit the root hookTimeout (extends is disabled), so app-boot beforeAll hooks run with the 10s default — windows-latest/node22 tipped over on the aop boot and the BundledAppBoot double boot while every test passed. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent 0aa18d8 commit 70901b2

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,13 @@ 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.
1718
beforeAll(async () => {
1819
app = mm.app({
1920
baseDir: path.join(import.meta.dirname, 'fixtures/apps/aop-app'),
2021
});
2122
await app.ready();
22-
});
23+
}, 60_000);
2324

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

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +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-
});
68+
// The double app boot above can exceed the default 10s hook timeout on
69+
// slow Windows runners.
70+
}, 120_000);
6971

7072
afterEach(async () => {
7173
return mm.restore();

0 commit comments

Comments
 (0)