Disable telemetry in tests (#130591)

* Disable telemetry in tests

* Remove the console log check
This commit is contained in:
Logan Ramos 2021-08-11 11:49:23 -04:00 committed by GitHub
parent 4191923874
commit 2ee9010437
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -120,7 +120,7 @@ export async function launch(userDataDir: string, _workspacePath: string, codeSe
...process.env
};
const args = ['--port', `${port++}`, '--browser', 'none', '--driver', 'web', '--extensions-dir', extPath];
const args = ['--disable-telemetry', '--port', `${port++}`, '--browser', 'none', '--driver', 'web', '--extensions - dir', extPath];
let serverLocation: string | undefined;
if (codeServerPath) {

View file

@ -106,7 +106,7 @@ async function launchServer(browserType: BrowserType): Promise<{ endpoint: url.U
const root = path.join(__dirname, '..', '..', '..', '..');
const logsPath = path.join(root, '.build', 'logs', 'integration-tests-browser');
const serverArgs = ['--browser', 'none', '--driver', 'web', '--enable-proposed-api'];
const serverArgs = ['--browser', 'none', '--driver', 'web', '--enable-proposed-api', '--disable-telemetry'];
let serverLocation: string;
if (process.env.VSCODE_REMOTE_SERVER_PATH) {