test: cover queued followup retargeting · openclaw/openclaw@f9c3d68
shakkernerd
·
2026-05-11
·
via Recent Commits to openclaw:main
File tree
src/auto-reply/reply/queue
| Original file line number | Diff line number | Diff line change |
|---|
@@ -46,13 +46,15 @@ describe("refreshQueuedFollowupSession", () => {
|
46 | 46 | nextAuthProfileIdSource: undefined, |
47 | 47 | }); |
48 | 48 | |
49 | | -expect(queue.lastRun).toMatchObject({ |
| 49 | +expect(queue.lastRun).toEqual({ |
| 50 | + ...makeRun(), |
50 | 51 | provider: "openai", |
51 | 52 | model: "gpt-4o", |
52 | 53 | authProfileId: undefined, |
53 | 54 | authProfileIdSource: undefined, |
54 | 55 | }); |
55 | | -expect(queue.items[0]?.run).toMatchObject({ |
| 56 | +expect(queue.items[0]?.run).toEqual({ |
| 57 | + ...makeRun(), |
56 | 58 | provider: "openai", |
57 | 59 | model: "gpt-4o", |
58 | 60 | authProfileId: undefined, |
@@ -76,7 +78,8 @@ describe("refreshQueuedFollowupSession", () => {
|
76 | 78 | nextModelOverrideSource: "user", |
77 | 79 | }); |
78 | 80 | |
79 | | -expect(queue.items[0]?.run).toMatchObject({ |
| 81 | +expect(queue.items[0]?.run).toEqual({ |
| 82 | + ...makeRun(), |
80 | 83 | provider: "ollama", |
81 | 84 | model: "qwen3.5:27b", |
82 | 85 | hasSessionModelOverride: true, |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。