🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.
TypeScript agentagent-collaborationagent-harnessloop-engineeringmcppersonal-assistantproactive-agentskillssuper-agenttask-management
// Fixture: a timeout contract asserted by timing the real call.
import { describe, expect, it } from 'vitest';
import { flushScheduledWork } from '../scheduleAfterResponse';
describe('flushScheduledWork', () => {
it('stops waiting at the timeout and leaves the work running', async () => {
const startedAt = Date.now();
const flushed = await flushScheduledWork({ timeoutMs: 10 });
const elapsed = Date.now() - startedAt;
expect(flushed).toBe(false);
// alint-expect
expect(elapsed).toBeLessThan(60);
});
});