From 2ee9010437900962fda5058900ddc4d647a89d90 Mon Sep 17 00:00:00 2001 From: Logan Ramos Date: Wed, 11 Aug 2021 11:49:23 -0400 Subject: [PATCH] Disable telemetry in tests (#130591) * Disable telemetry in tests * Remove the console log check --- test/automation/src/playwrightDriver.ts | 2 +- test/integration/browser/src/index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/automation/src/playwrightDriver.ts b/test/automation/src/playwrightDriver.ts index 71b8f7c92dd..ddabee470c4 100644 --- a/test/automation/src/playwrightDriver.ts +++ b/test/automation/src/playwrightDriver.ts @@ -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) { diff --git a/test/integration/browser/src/index.ts b/test/integration/browser/src/index.ts index 8755974374a..cdbe1ab5cc4 100644 --- a/test/integration/browser/src/index.ts +++ b/test/integration/browser/src/index.ts @@ -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) {