Merge pull request #3784 from matchai/chore/remove-redundant-env-restore

test: remove redundant local env restoration
This commit is contained in:
YeonGyu-Kim
2026-05-06 15:44:54 +09:00
committed by GitHub
4 changed files with 7 additions and 70 deletions
@@ -126,8 +126,6 @@ function createClientKey(info: SkillMcpClientInfo): string {
return `${info.sessionID}:${info.skillName}:${info.serverName}`
}
const ORIGINAL_ENV = { ...process.env }
beforeEach(() => {
createdStdioTransports.length = 0
createdHttpTransports.length = 0
@@ -147,15 +145,6 @@ afterEach(async () => {
}
trackedStates.length = 0
for (const key of Object.keys(process.env)) {
if (!(key in ORIGINAL_ENV)) {
delete process.env[key]
}
}
for (const [key, value] of Object.entries(ORIGINAL_ENV)) {
process.env[key] = value
}
setStdioClientDependenciesForTesting()
setHttpClientDependenciesForTesting()
})