🌊 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
TypeScript agentic-aiagentic-frameworkagentic-workflowagentsai-agentsai-assistantai-skillsautonomous-agentsclaudecodexdsh-pluginharnessmcp-servermulti-agentmulti-agent-systemsnpmskillsswarmswarm-intelligencetypescript
test(streaming): measure retained heap growth without penalizing collection
Rudy Celekli2ee8415bea5a
diff --git a/v3/@claude-flow/plugins/__tests__/ruvector-streaming.test.ts b/v3/@claude-flow/plugins/__tests__/ruvector-streaming.test.tsindex 9c4a83aad4..684e4c4281 100644--- a/v3/@claude-flow/plugins/__tests__/ruvector-streaming.test.ts+++ b/v3/@claude-flow/plugins/__tests__/ruvector-streaming.test.ts@@ -995,9 +995,11 @@ describe('RuVector Streaming', () => {const memAfter = process.memoryUsage().heapUsed;- // Memory growth should be reasonable (allow 50MB variance for test environment)- // In production with proper GC, this would be much lower- expect(Math.abs(memAfter - memBefore)).toBeLessThan(50 * 1024 * 1024);+ expect(generator.destroyed).toBe(true);+ expect(generator.readableLength).toBe(0);+ // Bound heap growth; GC may legitimately release more than 50MB of garbage+ // from earlier tests, which must not be mistaken for retained stream data.+ expect(memAfter - memBefore).toBeLessThan(50 * 1024 * 1024);});});