test(heartbeat): pass reply spy into seeded override case

This commit is contained in:
Peter Steinberger 2026-04-03 16:33:00 +01:00
parent 2a1a7ea6f9
commit 664265fc66
1 changed files with 2 additions and 1 deletions

View File

@ -245,7 +245,7 @@ describe("runHeartbeatOnce heartbeat model override", () => {
});
it("passes per-agent heartbeat lightContext override after merging defaults", async () => {
await withHeartbeatFixture(async ({ tmpDir, storePath, seedSession }) => {
await withHeartbeatFixture(async ({ tmpDir, storePath, replySpy, seedSession }) => {
const cfg: OpenClawConfig = {
agents: {
defaults: {
@ -276,6 +276,7 @@ describe("runHeartbeatOnce heartbeat model override", () => {
cfg,
agentId: "ops",
sessionKey,
replySpy,
});
expect(result.replySpy).toHaveBeenCalledWith(