Turn any idea, plan, or codebase into a beautiful interactive diagram. An agent skill for Claude Code, Codex, and more.
HTML agent-skillsai-agentsarchitecture-diagramclaude-codeclaude-skillscodexcoding-agentsdeepseek-harnessdeveloper-toolsdiagramsdiagrams-as-codedsh-pluginflowchartllmmermaidopencodesequence-diagramsoftware-architecturesystem-designvisualization
test: give held update checks explicit request budgets
tt-a1if0682e4185f1
diff --git a/test/update-notifier.test.mjs b/test/update-notifier.test.mjsindex ee21c72f..d9b868c6 100644--- a/test/update-notifier.test.mjs+++ b/test/update-notifier.test.mjs@@ -1774,7 +1774,8 @@ test('an empty precheck snapshot cannot start a second concurrent network requesconst delayedPrecheck = checkForUpdate(options(testFixture, fetchImpl));await pause.reached;- const claimedCheck = checkForUpdate(options(testFixture, fetchImpl));+ // This fetch stays pending while the competing filesystem precheck resumes.+ const claimedCheck = checkForUpdate(options(testFixture, fetchImpl, { timeoutMs: 2_000 }));await fetchStarted;pause.release();assert.deepEqual(await delayedPrecheck, { status: 'silent', reason: 'check-in-progress' });@@ -2150,11 +2151,13 @@ test('a snooze for a superseded release never suppresses the newer candidate', alet releaseRefresh;let markRefreshStarted;const refreshStarted = new Promise((resolve) => { markRefreshStarted = resolve; });+ // Hold this request across the overlapping reader and preference operations.const refresh = checkForUpdate(options(testFixture, async () => {markRefreshStarted();return new Promise((resolve) => { releaseRefresh = resolve; });}, {now: () => baseTime + (73 * 60 * 60 * 1_000),+ timeoutMs: 2_000,}));await refreshStarted;