Skip to content

I20251110-0850

@vogella vogella tagged this 10 Nov 09:38
The testKeepOneProperty test was failing randomly due to timing issues
when multiple jobs with KEEPONE_PROPERTY finish simultaneously.

Changes:
- Replace fixed 500ms wait with condition-based waiting that ensures
  all jobs have actually started (job.inProgress is true)
- Add explicit processEvents() calls after jobs complete and after
  marker job appears to ensure all UI event processing is complete
- Increase timeout from 500ms to 3000ms for job startup check

This eliminates the race condition by:
1. Ensuring all jobs are running before signaling them to finish
2. Ensuring job completion events are processed before checking state
3. Ensuring KEEPONE cleanup logic completes before final assertion

Tested with 10 consecutive runs - all passed.

Fixes #370

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
Assets 2
Loading