mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-13 05:12:55 -07:00
feat(integration): Force single model for more determinisitic e2e tests (#9278)
This commit is contained in:
@@ -9,6 +9,7 @@ import { mkdirSync, writeFileSync, readFileSync } from 'node:fs';
|
|||||||
import { join, dirname } from 'node:path';
|
import { join, dirname } from 'node:path';
|
||||||
import { fileURLToPath } from 'node:url';
|
import { fileURLToPath } from 'node:url';
|
||||||
import { env } from 'node:process';
|
import { env } from 'node:process';
|
||||||
|
import { DEFAULT_GEMINI_MODEL } from '../packages/core/src/config/models.js';
|
||||||
import fs from 'node:fs';
|
import fs from 'node:fs';
|
||||||
import * as pty from '@lydell/node-pty';
|
import * as pty from '@lydell/node-pty';
|
||||||
|
|
||||||
@@ -152,6 +153,7 @@ export class TestRig {
|
|||||||
otlpEndpoint: '',
|
otlpEndpoint: '',
|
||||||
outfile: telemetryPath,
|
outfile: telemetryPath,
|
||||||
},
|
},
|
||||||
|
model: DEFAULT_GEMINI_MODEL,
|
||||||
sandbox: env.GEMINI_SANDBOX !== 'false' ? env.GEMINI_SANDBOX : false,
|
sandbox: env.GEMINI_SANDBOX !== 'false' ? env.GEMINI_SANDBOX : false,
|
||||||
...options.settings, // Allow tests to override/add settings
|
...options.settings, // Allow tests to override/add settings
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user