test(clawrouter): refresh catalog before asserting models (#143692)

This commit is contained in:
Dallin Romney 2026-09-10 00:10:48 -07:00 • committed by GitHub
parent 0614abfe2a
commit 6081dc2ef8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -133,7 +133,7 @@ describe("ClawRouter managed gateway contract", () => {
expect(gatewayReadiness).toMatchObject({ ready: true, failing: [] });
const catalog = await instance.cli(
["models", "list", "--all", "--provider", "clawrouter", "--json"],
["models", "list", "--all", "--provider", "clawrouter", "--refresh", "--json"],
{ timeoutMs: 120_000 },
);
expect(catalog.code, catalog.stderr).toBe(0);