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

fix(claims): Fix test config and cooldown logic in load-balancer tests

rUv43592d1ec0a5
diff --git a/v3/@claude-flow/claims/tests/load-balancer.test.ts b/v3/@claude-flow/claims/tests/load-balancer.test.ts
index f7b92297f4..c8e46cdeee 100644
--- a/v3/@claude-flow/claims/tests/load-balancer.test.ts
+++ b/v3/@claude-flow/claims/tests/load-balancer.test.ts
@@ -223,6 +223,7 @@ class LoadBalancer {
);
if (overloaded.length === 0 || underloaded.length === 0) {
+ this.lastRebalanceAt = new Date(); // Set cooldown even when nothing to rebalance
return {
success: true,
actions: [],
diff --git a/v3/@claude-flow/claims/vitest.config.ts b/v3/@claude-flow/claims/vitest.config.ts
new file mode 100644
index 0000000000..72ab75154d
--- /dev/null
+++ b/v3/@claude-flow/claims/vitest.config.ts
@@ -0,0 +1,44 @@
+/**
+ * @claude-flow/claims - Vitest Configuration
+ * Test configuration for the claims module
+ */
+import { defineConfig } from 'vitest/config';
+import path from 'path';
+
+export default defineConfig({
+ test: {
+ environment: 'node',
+ include: [
+ 'tests/**/*.test.ts',
+ 'tests/**/*.spec.ts',
+ ],
+ exclude: [
+ 'node_modules',
+ 'dist',
+ ],
+ globals: true,
+ mockReset: true,
+ clearMocks: true,
+ restoreMocks: true,
+ testTimeout: 10000,
+ hookTimeout: 10000,
+ coverage: {
+ enabled: true,
+ provider: 'v8',
+ reporter: ['text', 'json', 'html'],
+ reportsDirectory: './coverage',
+ include: ['src/**/*.ts'],
+ exclude: [
+ '**/*.d.ts',
+ '**/*.test.ts',
+ '**/index.ts',
+ ],
+ },
+ },
+ resolve: {
+ alias: {
+ '@': path.resolve(__dirname, './src'),
+ '@tests': path.resolve(__dirname, './tests'),
+ },
+ },
+});