towerops/test/snmpkit/snmp_lib
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
..
mib snmpkit overhaul and etcd 2026-01-23 16:23:57 -06:00
asn1_test.exs bring in snmpkit 2026-01-23 12:52:17 -06:00
cache_test.exs bring in snmpkit 2026-01-23 12:52:17 -06:00
config_test.exs bring in snmpkit 2026-01-23 12:52:17 -06:00
dashboard_test.exs bring in snmpkit 2026-01-23 12:52:17 -06:00
decoder_long_length_test.exs snmpkit overhaul and etcd 2026-01-23 16:23:57 -06:00
error_test.exs bring in snmpkit 2026-01-23 12:52:17 -06:00
host_parser_test.exs bring in snmpkit 2026-01-23 12:52:17 -06:00
manager_test.exs perf: optimize slow tests - reduce timeouts and property test iterations 2026-01-24 15:22:56 -06:00
monitor_test.exs bring in snmpkit 2026-01-23 12:52:17 -06:00
oid_test.exs bring in snmpkit 2026-01-23 12:52:17 -06:00
pdu_test.exs improve credo 2026-01-23 18:21:40 -06:00
pool_test.exs bring in snmpkit 2026-01-23 12:52:17 -06:00
security_test.exs bring in snmpkit 2026-01-23 12:52:17 -06:00
snmpv3_edge_cases_test.exs credo improvements 2026-01-23 13:40:49 -06:00
snmpv3_integration_test.exs improve credo 2026-01-23 18:21:40 -06:00
transport_test.exs bring in snmpkit 2026-01-23 12:52:17 -06:00
types_test.exs improve credo 2026-01-23 18:21:40 -06:00
utils_test.exs bring in snmpkit 2026-01-23 12:52:17 -06:00
v3_encoder_test.exs snmpkit overhaul and etcd 2026-01-23 16:23:57 -06:00
walker_test.exs bring in snmpkit 2026-01-23 12:52:17 -06:00