Fixed problems
This commit is contained in:
1 parent
6b9ede516a
commit
7dcb0bf95b
2 files changed
+4
-2
No files matched your search
+1
-1
@@ -15,7 +15,7 @@ Open ideas for the playground frontend. Tick a box when done.
|
||||
## Tests
|
||||
|
||||
- [ ] `seo.service.ts`: spec for title/meta update on route change and language change.
|
||||
- [ ] **Cloth ICM drop specs near timeout**: drop specs in `cloth-icm-solver.spec.ts` take 2.5-3 s each vs Vitest's 5 s default; give them an explicit timeout before a slow CI runner fails them.
|
||||
- [x] **Cloth ICM drop specs near timeout**: drop specs in `cloth-icm-solver.spec.ts` take 2.5-3 s each vs Vitest's 5 s default; give them an explicit timeout before a slow CI runner fails them.
|
||||
- [ ] Pure logic without specs: `pathfinding-animator.ts`, cloth and pendulum GPU strategies (the math around them, not the shaders), `fractal3d`.
|
||||
|
||||
## Features
|
||||
|
||||
@@ -3,6 +3,8 @@ import {ClothIcmSolver} from './cloth-icm-solver';
|
||||
|
||||
const DT = 1 / 60;
|
||||
const TANGLED_SPACING = 0.1;
|
||||
// The simulation specs take 2-7 s on a slow CI runner; Vitest's default is 5 s.
|
||||
const SPEC_TIMEOUT_MS = 30_000;
|
||||
|
||||
function config(
|
||||
gridSize: number, thickness = 0.01, proximityRedetectEvery = 0, spacing = TANGLED_SPACING, velocitySmoothing = 0, clampProximityVelocity = false
|
||||
@@ -64,7 +66,7 @@ function runFrames(solver: ClothIcmSolver, frames: number, icmStep: number, dt:
|
||||
return solver.stats.intersections;
|
||||
}
|
||||
|
||||
describe('ClothIcmSolver', () => {
|
||||
describe('ClothIcmSolver', {timeout: SPEC_TIMEOUT_MS}, () => {
|
||||
it('untangles the tangled scene with ICM on', () => {
|
||||
const {solver, firstContours} = run('tangled', 30, 150, true);
|
||||
expect(firstContours).toBeGreaterThan(0);
|
||||
|
||||
Reference in new issue
Block a user