external-protocol-stress.test.mjs
11 lines 468 B
Raw
sha256:700fafdd1afa490919f9515d660ca6e75456bcd5bb67513abcd8757a634c01f6 docs: record AIP-b SD-21 land (KN #308) Human 10 days ago
1 import { describe, it } from 'node:test';
2 import { expect } from 'chai';
3 import * as protocol from '../../lib/agent/external-agent-protocol.mjs';
4
5 describe('Stress: External Protocol', () => {
6 it('should handle many concurrent task claims without failing basic validation', async () => {
7 expect(protocol.handleClaimTask).to.be.a('function');
8 const tasks = Array.from({ length: 100 }, (_, i) => `task-${i}`);
9 expect(tasks.length).to.equal(100);
10 });
11 });
File History 1 commit
sha256:700fafdd1afa490919f9515d660ca6e75456bcd5bb67513abcd8757a634c01f6 docs: record AIP-b SD-21 land (KN #308) Human 10 days ago