Skip to content

Commit 6c8e749

Browse files
Rangshcursoragent
andauthored
test(cli): wait for hung settlement before the activator deadline (#4469)
* test(cli): wait for hung settlement before the activator deadline The 50 ms parent deadline was also covering child spawn and ESM load, so CI load could SIGKILL before read-entered was fully written. Hold that budget until the child has entered readRecord. * test(cli): raise hung-settlement deadline to cover child startup Drop the test-only beforeSettlementTimeout hook and restore the production settle ordering. A 2 s settlement budget fits spawn and ESM load while the hung read still trips the deadline (#4466). Generated-by: Cursor Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent b714a39 commit 6c8e749

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎packages/cli/src/__tests__/runtime-host-local-target-activation.test.ts‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,10 @@ test('a parent deadline terminates and waits for a target activator with a hung
100100
},
101101
inheritableAuthorityLeaseFd: lease.fd,
102102
},
103-
{ settlementTimeoutMs: 50 },
103+
// 50 ms also covered child spawn and ESM load, so CI could SIGKILL before
104+
// read-entered was written (#4466). Two seconds fits startup; the hung
105+
// read still trips the settlement deadline.
106+
{ settlementTimeoutMs: 2_000 },
104107
);
105108
assert.equal(activation.kind, 'ready');
106109
await assert.rejects(

0 commit comments

Comments
 (0)