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
fix: remove drain handlers that fail on idempotent sets
setEnvironment only fires onDidChangeActiveEnvironment when the new
env differs from the _activeSelection cache. When teardown restores
the original env, the next test's setEnvironment is idempotent — no
event fires — and drain handlers wait forever.
Fix: persistence tests (setEnvironment persists, project independent,
idempotent) don't need event waits at all — getEnvironment calls
manager.get() directly, returning correct values immediately.
The event test uses a setImmediate-based drain that tolerates silence
when the first set is idempotent — just enough to let any pending
setImmediate callbacks fire without blocking on a 15s timeout.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
0 commit comments