Skip to content

Commit 7bb222d

Browse files
os-zhuangclaude
andcommitted
test(cloud-connection): raise seed-lookup install spec timeout for cold CI runners
The spec drives the real install handler, whose dynamic import('@objectstack/runtime') alone can take several seconds on a fresh runner — the 5s vitest default timed out on CI while passing warm locally. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent 90bbca7 commit 7bb222d

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

packages/cloud-connection/src/marketplace-install-local-seed-lookup.test.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,10 @@ beforeEach(() => { dir = mkdtempSync(join(tmpdir(), 'mil-seed-lookup-')); });
190190
afterEach(() => { rmSync(dir, { recursive: true, force: true }); vi.restoreAllMocks(); });
191191

192192
describe('marketplace install — seed lookup resolution', () => {
193-
it('writes target record ids (never raw externalId strings) for package objects unknown to the metadata service', async () => {
193+
// Generous timeout: the install handler dynamically imports the real
194+
// @objectstack/runtime (unmocked on purpose), and that cold import alone
195+
// can eat several seconds on a fresh CI runner.
196+
it('writes target record ids (never raw externalId strings) for package objects unknown to the metadata service', { timeout: 30_000 }, async () => {
194197
const { engine, store, registry } = makeEngine();
195198
const rawApp = makeRawApp();
196199
const { ctx, fire } = makeCtx(rawApp, {

0 commit comments

Comments
 (0)