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 edit:

rUvba96f77d2c67
diff --git a/v3/@claude-flow/swarm/__tests__/consensus.test.ts b/v3/@claude-flow/swarm/__tests__/consensus.test.ts
index 051b2f2fe8..7f7e1b5528 100644
--- a/v3/@claude-flow/swarm/__tests__/consensus.test.ts
+++ b/v3/@claude-flow/swarm/__tests__/consensus.test.ts
@@ -173,20 +173,10 @@ describe('Raft Consensus', () => {
});
await shortTimeout.initialize();
- const proposal = {
- id: 'fake-proposal',
- proposerId: 'timeout-node',
- value: {},
- term: 0,
- timestamp: new Date(),
- votes: new Map(),
- status: 'pending' as const,
- };
-
- // Manually add proposal for testing
- const result = await shortTimeout.awaitConsensus(proposal.id);
-
- expect(result.proposalId).toBe(proposal.id);
+ // Test timeout behavior with invalid proposal
+ await expect(
+ shortTimeout.awaitConsensus('non-existent-proposal')
+ ).rejects.toThrow('Proposal non-existent-proposal not found');
await shortTimeout.shutdown();
});