mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-22 03:51:18 +00:00
test: tighten codex app inventory cache assertion
This commit is contained in:
parent
64370ba2ef
commit
bc35e7501d
1 changed files with 6 additions and 2 deletions
|
|
@ -105,8 +105,12 @@ describe("Codex app inventory cache", () => {
|
|||
|
||||
const forced = cache.refreshNow({ key, request, nowMs: 1 });
|
||||
resolveFresh?.({ data: [app("fresh-app")], nextCursor: null });
|
||||
await expect(forced).resolves.toMatchObject({
|
||||
apps: [expect.objectContaining({ id: "fresh-app" })],
|
||||
await expect(forced).resolves.toStrictEqual({
|
||||
key,
|
||||
apps: [app("fresh-app")],
|
||||
fetchedAtMs: 1,
|
||||
expiresAtMs: 1_001,
|
||||
revision: 2,
|
||||
});
|
||||
|
||||
resolveStale?.({ data: [app("stale-app")], nextCursor: null });
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue