Skip to content

Commit 91013cb

Browse files
sahrizviclaude
andcommitted
test(workspace): drop the unused request counter from gatedFetch
(bot review) Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_012Q51zFUmPg1WwtS5CrGJE6
1 parent 55c9fcb commit 91013cb

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

‎packages/opencode/test/altimate/workspace/memory-sync.test.ts‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -347,17 +347,14 @@ function gatedFetch() {
347347
let entered!: () => void
348348
const firstRequest = new Promise<void>((r) => (entered = r))
349349
const original = globalThis.fetch
350-
let requests = 0
351350
globalThis.fetch = (async (input: any, init?: any) => {
352-
requests++
353351
entered()
354352
await gate
355353
return original(input, init)
356354
}) as unknown as typeof fetch
357355
return {
358356
release,
359357
firstRequest,
360-
requests: () => requests,
361358
restore: () => {
362359
globalThis.fetch = original
363360
},

0 commit comments

Comments
 (0)