Skip to content

Commit

Permalink
Disable telemetry in tests (microsoft#130591)
Browse files Browse the repository at this point in the history
* Disable telemetry in tests

* Remove the console log check
  • Loading branch information
lramos15 authored Aug 11, 2021
1 parent 4191923 commit 2ee9010
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/automation/src/playwrightDriver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion test/integration/browser/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 2ee9010

Please sign in to comment.