Tests: drop duplicate cron NO_REPLY case

This commit is contained in:
Peter Steinberger
2026-04-07 09:54:20 +08:00
parent add2b8e9f0
commit ccd3fec23e

View File

@@ -232,23 +232,6 @@ describe("runCronIsolatedAgentTurn", () => {
setupIsolatedAgentTurnMocks({ fast: true });
});
it("does not mark NO_REPLY output as delivered when no direct send occurs", async () => {
await withTelegramAnnounceFixture(async ({ home, storePath, deps }) => {
mockAgentPayloads([{ text: "NO_REPLY" }]);
const res = await runTelegramAnnounceTurn({
home,
storePath,
deps,
delivery: { mode: "announce", channel: "telegram", to: "123" },
});
expect(res.status).toBe("ok");
expect(res.delivered).toBe(false);
expect(runSubagentAnnounceFlow).not.toHaveBeenCalled();
expect(deps.sendMessageTelegram).not.toHaveBeenCalled();
});
});
it("deletes the isolated cron session after NO_REPLY when deleteAfterRun is enabled", async () => {
await withTelegramAnnounceFixture(async ({ home, storePath, deps }) => {
mockAgentPayloads([{ text: "NO_REPLY" }]);