Skip to content

Commit 28ae2b7

Browse files
committed
test(daemon): assert failed owner close reports at lifecycle boundary
1 parent 971d26b commit 28ae2b7

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎packages/daemon/src/server/http/daemon-runtime-quiesce.test.ts‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,9 @@ test('a rejected platform close retains registration and lock', async () => {
418418
stderr: { write: () => {} },
419419
stdout: { write: () => {} },
420420
});
421-
await expect(runtime.close()).rejects.toThrow('gateway teardown rejected');
421+
const report = await runtime.close();
422+
expect(report.platformOwners).toBe('failed');
423+
expect(fs.readFileSync(paths.logPath, 'utf8')).toContain('gateway teardown rejected');
422424
expect(fs.existsSync(paths.infoPath)).toBe(true);
423425
expect(fs.existsSync(paths.lockPath)).toBe(true);
424426
});

0 commit comments

Comments
 (0)