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
extension/test: restore process.env modified during testing
Some tests mutate process.env, or call updateGoVarsFromConfig that
mutates process.env (setting GOROOT, GOPATH, GOMODCACHE, GO111MODULE...)
That makes subsequent tests operate in strange state.
Fix tests to recover the process env state cached from suite/test start.
The ideal solution would be to avoid mutating process.env whenever
possible. There were brief attempts to clean up this and replace
updateGoVarsFromConfig with a Configuration storage object and
dependency injection, but they were not complete yet.
Change-Id: Iecd3bb639b50875a3df652f2060c2c836499913e
Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/619776
kokoro-CI: kokoro <[email protected]>
Commit-Queue: Hyang-Ah Hana Kim <[email protected]>
Reviewed-by: Hongxiang Jiang <[email protected]>
0 commit comments