Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
stabilize runtime refresh stress tests
  • Loading branch information
ndycode committed May 1, 2026
commit a4328a11d657410998ead3ca61e5b2aaa7209d04
2 changes: 2 additions & 0 deletions test/runtime-rotation-proxy.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1046,6 +1046,7 @@ describe("runtime rotation proxy", () => {
};
});
const accountManager = new AccountManager(undefined, storage);
vi.spyOn(accountManager, "saveToDiskDebounced").mockImplementation(() => undefined);
const { calls, fetchImpl } = createRecordingFetch((_call, attempt) =>
textEventStream(`data: refreshed-${attempt}\n\n`),
);
Expand Down Expand Up @@ -1100,6 +1101,7 @@ describe("runtime rotation proxy", () => {
expires: now + 7_200_000,
});
const accountManager = new AccountManager(undefined, storage);
vi.spyOn(accountManager, "saveToDiskDebounced").mockImplementation(() => undefined);
const originalCommit = accountManager.commitRefreshedAuth.bind(accountManager);
let releaseCommit: (() => void) | undefined;
const commitBlocked = new Promise<void>((resolve) => {
Expand Down