test: harden Linear list issue polling

This commit is contained in:
Priyanshu Choudhary 2026-05-18 01:15:26 +05:30
parent 2f59d93a0c
commit 0e4854a9a1
1 changed files with 2 additions and 2 deletions

View File

@ -252,10 +252,10 @@ describe.skipIf(!canRun)("tracker-linear (integration)", () => {
// Linear API has eventual consistency — poll until the issue appears in list results
const found = await pollUntil(
async () => {
const issues = await tracker.listIssues!({ state: "open", limit: 50 }, project);
const issues = await tracker.listIssues!({ state: "open", limit: 100 }, project);
return issues.find((i: { id: string }) => i.id === issueIdentifier);
},
{ timeoutMs: 5_000, intervalMs: 500 },
{ timeoutMs: 15_000, intervalMs: 1_000 },
);
expect(found).toBeDefined();