3D engine that AI agents drive
Give render-job tests a liveness bound that survives a parallel suite
Nguyen Xuan Anb43e83795799
diff --git a/.gitignore b/.gitignoreindex 8bd40bd5..bdaba057 100644--- a/.gitignore+++ b/.gitignore@@ -48,3 +48,4 @@ public/agent-motion.mdpublic/agent-character-motion.mdpublic/agent-review.md+.claude/worktrees/diff --git a/tests/agent-render-jobs.test.js b/tests/agent-render-jobs.test.jsindex 44228d4c..95bb8e2b 100644--- a/tests/agent-render-jobs.test.js+++ b/tests/agent-render-jobs.test.js@@ -26,7 +26,8 @@ async function temporary(context) {async function terminal(controller, jobId) {const started = Date.now();while (!['completed', 'cancelled', 'failed', 'interrupted'].includes(controller.status(jobId).state)) {- if (Date.now() - started > 2000) throw new Error('Job did not reach its terminal state.');+ // A liveness bound, not a speed check: CPU-heavy test files run in parallel and can delay a fast job past two seconds.+ if (Date.now() - started > 10000) throw new Error('Job did not reach its terminal state.');await new Promise(resolve => setTimeout(resolve, 2));}return controller.status(jobId);