diff --git a/src/tools/skill/async-description-refresh.test.ts b/src/tools/skill/async-description-refresh.test.ts index 190f58a06..9712c2678 100644 --- a/src/tools/skill/async-description-refresh.test.ts +++ b/src/tools/skill/async-description-refresh.test.ts @@ -19,13 +19,15 @@ function createMockSkill(name: string): LoadedSkill { } async function waitForRefresh(predicate: () => boolean): Promise { - for (let attempt = 0; attempt < 20; attempt += 1) { + for (let attempt = 0; attempt < 200; attempt += 1) { if (predicate()) { return } - await new Promise((resolve) => setTimeout(resolve, 0)) + await new Promise((resolve) => setTimeout(resolve, 10)) } + + throw new Error("Timed out waiting for async skill description refresh") } describe("skill tool - async native skill description refresh", () => {