mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-06 23:01:08 +00:00
test(heartbeat): pass reply spy into seeded override case
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user