mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-20 09:17:51 +00:00
test(heartbeat): pass reply spy into seeded override case
This commit is contained in:
parent
2a1a7ea6f9
commit
664265fc66
1 changed files with 2 additions and 1 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue