Skip to content

Commit f6f0b18

Browse files
committed
Allow distinct failure codes in the cleanup boundary assertion
1 parent 4b8f059 commit f6f0b18

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎tests/index.resourceShutdown.spec.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ describe('CLI runtime resource boundaries', () => {
2424
expect(agentBoundary).toContain('await Promise.allSettled([');
2525
expect(agentBoundary).toContain('agent?.shutdownRuntimeResources()');
2626
expect(agentBoundary).toContain('runtimeResourceOwner?.shutdown()');
27-
expect(agentBoundary).toContain('process.exitCode = succeeded ? 0 : 1');
27+
expect(agentBoundary).toMatch(/process\.exitCode = succeeded \? 0 : [^;]+;/);
2828
});
2929

3030
it('routes background signals through agent cancellation and owned cleanup', () => {

0 commit comments

Comments
 (0)