Skip to content

armgit / 67.js

Public Imported from GitHub
0

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/.gitignore
index 8bd40bd5..bdaba057 100644
--- a/.gitignore
+++ b/.gitignore
@@ -48,3 +48,4 @@ public/agent-motion.md
public/agent-character-motion.md
public/agent-review.md
+.claude/worktrees/
diff --git a/tests/agent-render-jobs.test.js b/tests/agent-render-jobs.test.js
index 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);