test: remove unnecessary changes introduced to address EPERM failures

This commit is contained in:
Jarrod Whelan
2026-02-10 10:13:19 -08:00
parent 785c60ae4a
commit 53e1fa13ea
2 changed files with 3 additions and 6 deletions
@@ -20,8 +20,6 @@ import {
import { createMockMessageBus } from '@google/gemini-cli-core/src/test-utils/mock-message-bus.js'; import { createMockMessageBus } from '@google/gemini-cli-core/src/test-utils/mock-message-bus.js';
import type { Config, Storage } from '@google/gemini-cli-core'; import type { Config, Storage } from '@google/gemini-cli-core';
import { expect, vi } from 'vitest'; import { expect, vi } from 'vitest';
import os from 'node:os';
import path from 'node:path';
export function createMockConfig( export function createMockConfig(
overrides: Partial<Config> = {}, overrides: Partial<Config> = {},
@@ -45,8 +43,8 @@ export function createMockConfig(
getCheckpointingEnabled: vi.fn().mockReturnValue(false), getCheckpointingEnabled: vi.fn().mockReturnValue(false),
// eslint-disable-next-line @typescript-eslint/no-unsafe-type-assertion // eslint-disable-next-line @typescript-eslint/no-unsafe-type-assertion
storage: { storage: {
getProjectTempDir: () => os.tmpdir(), getProjectTempDir: () => '/tmp',
getProjectTempCheckpointsDir: () => path.join(os.tmpdir(), 'checkpoints'), getProjectTempCheckpointsDir: () => '/tmp/checkpoints',
} as Storage, } as Storage,
getTruncateToolOutputThreshold: () => getTruncateToolOutputThreshold: () =>
DEFAULT_TRUNCATE_TOOL_OUTPUT_THRESHOLD, DEFAULT_TRUNCATE_TOOL_OUTPUT_THRESHOLD,
@@ -6,7 +6,6 @@
import * as fs from 'node:fs'; import * as fs from 'node:fs';
import * as path from 'node:path'; import * as path from 'node:path';
import * as os from 'node:os';
import { import {
beforeAll, beforeAll,
afterAll, afterAll,
@@ -30,7 +29,7 @@ describe('ExtensionManager theme loading', () => {
beforeAll(async () => { beforeAll(async () => {
tempHomeDir = await fs.promises.mkdtemp( tempHomeDir = await fs.promises.mkdtemp(
path.join(os.tmpdir(), 'gemini-cli-test-'), path.join(fs.realpathSync('/tmp'), 'gemini-cli-test-'),
); );
}); });