Skip to content

Commit fd41754

Browse files
authored
Merge pull request #7 from jsilvanus/claude/fix-ci-errors-s4kHW
fix: use default child_process import so test stubs can intercept execFileSync
2 parents 79e654f + a3a1227 commit fd41754

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/embedder.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import { getCacheDir, buildPipelineOptions } from './model-cache.js';
1919
import os from 'os';
2020
import fs from 'fs';
2121
import { join } from 'path';
22-
import { execFileSync } from 'child_process';
22+
import childProcess from 'child_process';
2323

2424
export class Embedder {
2525
/**
@@ -233,7 +233,7 @@ export class Embedder {
233233
const script = join(process.cwd(), 'bench', 'grid-search.js');
234234
const out = profileOut ?? join(process.cwd(), 'bench', `grid-results-${device}-${Date.now()}.json`);
235235
try {
236-
execFileSync(process.execPath, [script, '--device', device, '--sample-size', String(sampleSize), '--out', out], { stdio: 'inherit' });
236+
childProcess.execFileSync(process.execPath, [script, '--device', device, '--sample-size', String(sampleSize), '--out', out], { stdio: 'inherit' });
237237
} catch (err) {
238238
throw new Error(`Grid search failed: ${err.message}`);
239239
}

0 commit comments

Comments
 (0)