You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test(plugin-auth): load the batch-6 admin endpoint graphs at module top, not inside each clocked case (#15914)
`durability-swallow-repair.test.ts`'s batch-6 cases reached
`runAdminCreateUser` / `runAdminImportUsers` through `await import(...)`
written inside the `it()` body. vitest wraps test bodies in
`withTimeout(...)` and has no timeout knob covering module loading, so the
FIRST of each group of structurally identical siblings charged that module
graph's cold transform-and-import to its own 10 000 ms `testTimeout` while
the rest hit the warm module cache. Under a loaded CI shard the first
sibling ran out of budget and reddened PRs that read no part of this code.
Loading at module top removes the clock rather than widening it:
`collectTests()` awaits `runner.importFile()` bare and only records the
duration for reporters. This is the repo-wide convention already stated in
AGENTS.md and enforced for cross-package specifiers by
`check-test-source-alias`.
No assertion changed. The file has no `vi.mock`/`vi.resetModules`, so every
case already shared one module instance via the module cache; the only edit
to a case body is the removal of its import line.
Claude-Session: https://claude.ai/code/session_01XpTx2tbq3pZRYAdoGt6E6Y
Co-authored-by: Claude <noreply@anthropic.com>
0 commit comments