Skip to content

armgit / ruflo

Public Imported from GitHub
0

🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated

Checkpoint: File edits

rUv3b5a3b3c4469
diff --git a/v3/@claude-flow/cli/__tests__/services/headless-worker-executor.test.ts b/v3/@claude-flow/cli/__tests__/services/headless-worker-executor.test.ts
index a7a767d46e..9b8821549e 100644
--- a/v3/@claude-flow/cli/__tests__/services/headless-worker-executor.test.ts
+++ b/v3/@claude-flow/cli/__tests__/services/headless-worker-executor.test.ts
@@ -775,36 +775,27 @@ describe('HeadlessWorkerExecutor', () => {
});
it('should timeout after specified duration', async () => {
- vi.useFakeTimers({ shouldAdvanceTime: true });
-
const config: HeadlessWorkerConfig = {
workerId: 'timeout-test',
workerType: 'map',
prompt: 'Analyze',
- timeout: 100, // 100ms for faster test
+ timeout: 50, // 50ms for faster test
};
const timeoutHandler = vi.fn();
executor.on('timeout', timeoutHandler);
- // Start execution
- const resultPromise = executor.execute(config);
-
- // Advance past timeout
- await vi.advanceTimersByTimeAsync(150);
-
- const result = await resultPromise;
+ // Process never completes - will timeout
+ const result = await executor.execute(config);
expect(result.success).toBe(false);
expect(result.error).toContain('timed out');
expect(mockChildProcess.kill).toHaveBeenCalledWith('SIGTERM');
expect(timeoutHandler).toHaveBeenCalledWith({
workerId: 'timeout-test',
- timeout: 100,
+ timeout: 50,
});
-
- vi.useRealTimers();
- }, 10000);
+ });
it('should use default timeout configuration', () => {
// Test default timeout configuration value