Skip to content

Commit 38353c7

Browse files
authored
chore: disable telemetry in accuracy tests (#704)
1 parent 833f3d2 commit 38353c7

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

tests/accuracy/sdk/accuracyTestingClient.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,11 +91,15 @@ export class AccuracyTestingClient {
9191
return [`--${key}`, value];
9292
});
9393

94-
const args = [MCP_SERVER_CLI_SCRIPT, "--connectionString", mdbConnectionString, ...additionalArgs];
94+
const args = [MCP_SERVER_CLI_SCRIPT, mdbConnectionString, ...additionalArgs];
9595

9696
const clientTransport = new StdioClientTransport({
9797
command: process.execPath,
9898
args,
99+
env: {
100+
...process.env,
101+
DO_NOT_TRACK: "1",
102+
},
99103
});
100104

101105
const client = await createMCPClient({

tests/integration/elicitation.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import { describeWithMongoDB } from "./tools/mongodb/mongodbHelpers.js";
99
function createTestConfig(config: Partial<UserConfig> = {}): UserConfig {
1010
return {
1111
...defaultTestConfig,
12-
telemetry: "disabled",
1312
// Add fake API credentials so Atlas tools get registered
1413
apiClientId: "test-client-id",
1514
apiClientSecret: "test-client-secret",

0 commit comments

Comments
 (0)