mirror of
https://github.com/coder/coder.git
synced 2026-06-03 21:18:24 +00:00
4c63ed7602
## Summary The `assertWorkspaceLastUsedAtUpdated` and `assertWorkspaceLastUsedAtNotUpdated` test helpers previously accepted a `context.Context`, which callers shared with preceding HTTP requests. In `ProxyError` tests the request targets a fake unreachable app (`http://127.1.0.1:396`), and the reverse-proxy connection timeout can consume most of the context budget — especially on Windows — leaving too little time for the `testutil.Eventually` polling loop and causing flakes. ## Changes Replace the `context.Context` parameter with a `time.Duration` so each assertion creates its own fresh context internally. This: - Makes the timeout budget explicit at every call site - Structurally prevents shared-context starvation - Fixes the class of flake, not just the two known-failing subtests All 34 active call sites updated to pass `testutil.WaitLong`. Fixes coder/internal#1385