towerops/config
Graham McIntire 52329cf959
perf(tests): make device deletion delay configurable for faster tests
Make the 500ms device deletion delay configurable via application config.
Set to 10ms in test environment (vs 500ms in production).

This sleep waits for in-flight polling jobs to complete before deleting
a device. In tests with mocked jobs, this delay is unnecessary.

Affected tests:
- All device deletion tests (were 500-650ms, now ~100-150ms)
- Equipment context tests
- API controller tests
- LiveView tests with device deletion

Performance: 28.3s → 25.2s (11% faster)
Total improvement from baseline: 52s → 25.2s (51.5% faster)
2026-03-06 08:04:08 -06:00
..
config.exs perf(ci): optimize database setup with structure.sql (99.7% faster) 2026-03-05 13:30:52 -06:00
dev.exs refactor: replace Task.start with Oban for alert notifications 2026-03-05 09:22:14 -06:00
prod.exs fix: suppress noisy health check logs in production 2026-03-05 13:13:19 -06:00
runtime.exs refactor: replace Task.start with Oban for alert notifications 2026-03-05 09:22:14 -06:00
test.exs perf(tests): make device deletion delay configurable for faster tests 2026-03-06 08:04:08 -06:00