towerops/test/snmpkit/snmp_mgr
Graham McIntire 07336fefff
perf(test): optimize slow tests - 68% faster
- Add timeout: 100 to SNMP tests to avoid 5s default timeout on unreachable IPs
- Reduce retry delays in error handler tests from 50-100ms to 1ms
- Fix Splynx rate limit test to stub auth immediately without extra calls
- Use localhost instead of device.local to avoid DNS timeout
- Use temp empty dir for ImportProfiles test instead of scanning 788 real files

Results:
- Top 10 slowest: 45.6s → 14.6s (68% reduction)
- Overall suite: ~80s → 39.9s (50% faster)
- Specific improvements:
  * Splynx sync: 7010ms → 134ms (98% faster)
  * ImportProfiles: 5502ms → 33ms (99% faster)
  * get_bulk!: 5043ms → 125ms (97% faster)
  * Walk hostname: 5005ms → 119ms (97% faster)
  * Error retries: 3103ms → 6ms (99% faster)
2026-03-05 14:35:58 -06:00
..
bulk_test.exs perf(test): optimize slow tests - 68% faster 2026-03-05 14:35:58 -06:00
errors_test.exs more tests 2026-02-03 10:28:39 -06:00
format_test.exs more tests and fixes 2026-01-31 16:00:07 -06:00
mib_extraction_test.exs more tests and fixes 2026-01-31 16:00:07 -06:00
mib_parser_test.exs test cleanup 2026-01-28 10:31:22 -06:00
mib_stubs_test.exs test cleanup 2026-01-28 10:31:22 -06:00
mib_test.exs more tests and fixes 2026-01-31 16:00:07 -06:00
types_test.exs more tests 2026-02-03 10:43:30 -06:00
walk_test.exs perf(test): optimize slow tests - 68% faster 2026-03-05 14:35:58 -06:00