Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.
JavaScript 3d-generationai-agentsanimationavatardigital-humangenerative-aiglbgltfimage-to-3dllmmcpmcp-servermodel-context-protocolsolanatext-to-3dthreejsweb-componentswebglwebxrx402
test: let the slow GLB and scrypt cases inherit the configured timeout
nirholas40f4c88e1d3b
diff --git a/tests/avatar-composer.test.js b/tests/avatar-composer.test.jsindex c0fbc4615..0f126b704 100644--- a/tests/avatar-composer.test.js+++ b/tests/avatar-composer.test.js@@ -126,12 +126,19 @@ describe('composeStudioAvatar', () => {expect(descriptor.identity).toBeTruthy();expect(meshes.length).toBeGreaterThan(3);- }, 30_000);+ // No per-test budget: one composition loads several real GLB bases off disk+ // and re-serialises them, measured at 17s idle here and well past 30s when+ // the rest of the suite is competing for the box. A tighter-than-global+ // ceiling on it asserts nothing about the composer and fails on scheduling,+ // so this inherits the configured testTimeout instead.+ });it('is deterministic: the same seed composes byte-identical output', async () => {const profile = { gender: 'male', ethnicityKey: 'nordic', ageKey: 'young-adult', build: 'lean' };const a = await composeStudioAvatar({ profile, seed: 'det-1', loadBase });const b = await composeStudioAvatar({ profile, seed: 'det-1', loadBase });expect(Buffer.from(a.bytes).equals(Buffer.from(b.bytes))).toBe(true);- }, 30_000);+ // Two full compositions, so roughly twice the cost of the test above; the+ // same reasoning applies and it inherits the configured testTimeout.+ });});diff --git a/tests/src/evm-eoa-grinder.test.js b/tests/src/evm-eoa-grinder.test.jsindex f16bbc8f5..aa96241e5 100644--- a/tests/src/evm-eoa-grinder.test.js+++ b/tests/src/evm-eoa-grinder.test.js@@ -151,5 +151,10 @@ describe('evm eoa grinder · encrypted keystore export round-trip', () => {expect(recovered.address.toLowerCase()).toBe(address);// Wrong password must fail — never silently return a different key.await expect(Wallet.fromEncryptedJson(json, 'wrong')).rejects.toThrow();- }, 30_000);+ // No per-test budget: this runs three real scrypt derivations at ethers'+ // default keystore cost (N=131072) - encrypt, decrypt, wrong-password+ // decrypt - which is ~31s on this box and slower under suite load. The+ // point of the test is the round trip at the cost the UI actually uses, so+ // it inherits the configured testTimeout rather than racing a stopwatch.+ });});diff --git a/tests/usage-direct-insert-timeout.test.js b/tests/usage-direct-insert-timeout.test.jsindex 0c6a4485d..42ff02c36 100644--- a/tests/usage-direct-insert-timeout.test.js+++ b/tests/usage-direct-insert-timeout.test.js@@ -37,7 +37,13 @@ describe('recordEvent direct-insert fallback (buffer down)', () => {// never awaiting the DB write.const ret = recordEvent({ userId: 'u1', kind: 'avatar_fetch' });expect(ret).toBeUndefined();- expect(Date.now() - startedAt).toBeLessThan(50);+ // The `sql` mock above never settles, so a recordEvent that awaited the+ // write could not have returned here at all. The wall-clock bound is only a+ // second smoke check on top of that, and it is set well under the 2500ms+ // fallback budget rather than at a few milliseconds: a fork descheduled by+ // its five busy peers can lose tens of milliseconds between two statements,+ // which says nothing about whether this call blocks.+ expect(Date.now() - startedAt).toBeLessThan(1_000);// Wait past the 2.5s fallback budget (plus retry backoff) but far under 15s.await new Promise((r) => setTimeout(r, 4_000));