Skip to content

Commit 385f267

Browse files
author
Danny McCormick
authored
Revert "Clean environment after running mocks"
Accidentally committed to master instead of branch
1 parent 059405c commit 385f267

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

node/mock-test.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,6 @@ export class MockTestRunner {
6666
nodePath = this.getNodePath(nodeVersion);
6767
}
6868
let spawn = cp.spawnSync(nodePath, [this._testPath]);
69-
// Clean environment
70-
Object.keys(process.env)
71-
.filter(key => (key.substr(0, 'INPUT_'.length) === 'INPUT_' ||
72-
key.substr(0, 'SECRET_'.length) === 'SECRET_' ||
73-
key.substr(0, 'VSTS_TASKVARIABLE_'.length) === 'VSTS_TASKVARIABLE_'))
74-
.forEach(key => delete process.env[key]);
7569
if (spawn.error) {
7670
console.error('Running test failed');
7771
console.error(spawn.error.message);

0 commit comments

Comments
 (0)