Skip to content

Commit 95ae613

Browse files
committed
test(webapp): shorten the run-org deadline fake delay so no timer outlives the reject
1 parent 9e39ed9 commit 95ae613

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

apps/webapp/test/snapshotRunOrg.server.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,9 @@ describe("snapshot run→org source", () => {
102102
});
103103

104104
it("resolveAuthoritative throws when the read exceeds the deadline", async () => {
105-
const primary = fakeClient({ mapping: { run_a: "org_a" }, delayMs: 2000 });
105+
// Just over the 500 ms deadline: enough to trip it, without leaving a long timer running past
106+
// the rejection and holding the vitest worker open for the difference.
107+
const primary = fakeClient({ mapping: { run_a: "org_a" }, delayMs: 600 });
106108
const source = createSnapshotRunOrgSource({ primary });
107109

108110
await expect(source.resolveAuthoritative("run_a")).rejects.toThrow(/deadline|exceed/i);

0 commit comments

Comments
 (0)