Skip to content

armgit / cindy

Public Imported from GitHub
0

Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。

test(cc-manager): 修正 kill-pending-send 用例缩进 — 最后一条 it 移回 describe 块内

yan599f6b162b87
diff --git a/packages/maker-cc-manager/__tests__/kill-pending-send.test.ts b/packages/maker-cc-manager/__tests__/kill-pending-send.test.ts
index b89893a523..493fc3823d 100644
--- a/packages/maker-cc-manager/__tests__/kill-pending-send.test.ts
+++ b/packages/maker-cc-manager/__tests__/kill-pending-send.test.ts
@@ -60,8 +60,6 @@ describe('kill 终止窗口的 sendMessage 拒绝 (Greptile P1)', () => {
await registry.close('s2'); // close 路径: alive 立即 false
expect(() => registry.sendMessage('s2', { text: 'hello' })).toThrowError(/SESSION_NOT_FOUND|no longer alive/);
});
-});
-
it('kill resolves only after the consume loop has fully exited (daemon-side settle guarantee)', async () => {
// Greptile R27:kill RPC 返回时 session 必然不再 alive — client 不再需要
// 用固定期限轮询猜终止状态 (buildBlockingFactory 的 loop 在 end 后还挂
@@ -71,3 +69,4 @@ describe('kill 终止窗口的 sendMessage 拒绝 (Greptile P1)', () => {
await registry.kill('s3');
expect(session.alive).toBe(false);
});
+});