Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions gitnexus/test/integration/worker-pool.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -300,15 +300,15 @@ describe('worker pool integration', () => {

const warnSpy = vi.spyOn(console, 'warn').mockImplementation(() => undefined);
pool = createWorkerPool(pathToFileURL(workerPath) as URL, 1, {
subBatchIdleTimeoutMs: 150,
subBatchIdleTimeoutMs: 500,
maxTimeoutRetries: 1,
timeoutBackoffFactor: 4,
});

try {
const results = await pool.dispatch<any, any>([{ path: 'retry.ts', content: '' }]);
expect(results).toEqual([{ fileCount: 1, recovered: true }]);
expect(warnSpy).toHaveBeenCalledWith(expect.stringContaining('Retrying with 0.6s timeout'));
expect(warnSpy).toHaveBeenCalledWith(expect.stringContaining('Retrying with 2s timeout'));
} finally {
warnSpy.mockRestore();
fs.rmSync(tempDir, { recursive: true, force: true });
Expand Down
Loading