test: tighten codex app inventory cache assertion · openclaw/openclaw@bc35e75
shakkernerd
·
2026-05-11
·
via Recent Commits to openclaw:main
File tree
extensions/codex/src/app-server
| Original file line number | Diff line number | Diff line change |
|---|
@@ -105,8 +105,12 @@ describe("Codex app inventory cache", () => {
|
105 | 105 | |
106 | 106 | const forced = cache.refreshNow({ key, request, nowMs: 1 }); |
107 | 107 | resolveFresh?.({ data: [app("fresh-app")], nextCursor: null }); |
108 | | -await expect(forced).resolves.toMatchObject({ |
109 | | -apps: [expect.objectContaining({ id: "fresh-app" })], |
| 108 | +await expect(forced).resolves.toStrictEqual({ |
| 109 | + key, |
| 110 | +apps: [app("fresh-app")], |
| 111 | +fetchedAtMs: 1, |
| 112 | +expiresAtMs: 1_001, |
| 113 | +revision: 2, |
110 | 114 | }); |
111 | 115 | |
112 | 116 | resolveStale?.({ data: [app("stale-app")], nextCursor: null }); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。