towerops/test
Graham McIntire 0888d4eed1
perf: optimize slow tests - reduce timeouts and property test iterations
Optimized the 10 slowest tests from 4.7s to ~2.5s (47% reduction):

Property-based tests:
- Reduced max_runs from 50/100 to 10 iterations (still provides good coverage)
- ApiTokensTest: 3 property tests now run 10 iterations instead of 50-100
- EquipmentTest: 3 property tests now run 10 iterations instead of 50-100

Network timeout tests:
- Manager IPv6 tests: reduced timeout from 100ms to 25ms (75% faster)
- Tests already expect failures, so shorter timeouts don't affect validity

Database optimization:
- MemoryPoolTest: converted individual insert to bulk insert_all
- Added proper updated_at timestamp for MemoryPool (required by schema)

Async processing:
- AgentLatencyEvaluatorTest: reduced Process.sleep from 500ms to 100ms
- Worker processes reliably within 100ms threshold

All 3,686 tests pass with no failures.

🤖 Generated with Claude Code

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-24 15:22:56 -06:00
..
integration import yamls 2026-01-21 14:30:04 -06:00
snmpkit perf: optimize slow tests - reduce timeouts and property test iterations 2026-01-24 15:22:56 -06:00
support use password for user regi 2026-01-21 09:13:08 -06:00
towerops perf: optimize slow tests - reduce timeouts and property test iterations 2026-01-24 15:22:56 -06:00
towerops_web add multiple cloud agents 2026-01-23 18:04:01 -06:00
test_helper.exs bring in snmpkit 2026-01-23 12:52:17 -06:00