towerops/test/towerops_web/live/org
Graham McIntire 83d47d1502
perf(tests): remove/reduce Process.sleep calls for faster tests
- Remove all 25ms and 50ms sleeps from agent_channel_test
- Add poll_until helper for async DB operations (early exit on success)
- Reduce timeout test sleeps from 100ms to 60ms
- Reduce polling delays from 10ms to 5ms in multiple tests
- Remove unnecessary timestamp and background task sleeps
- Reduce circuit breaker recovery sleep from 150ms to 110ms

Performance: 30.3s → 28.3s (6.6% faster)
Total improvement from baseline: 52s → 28.3s (45.6% faster)
2026-03-06 07:57:30 -06:00
..
integrations_live_test.exs fix(tests): enable TOTP in remaining test setups 2026-03-06 07:36:19 -06:00
preseem_devices_live_test.exs perf(tests): disable TOTP by default in fixtures for faster tests 2026-03-06 07:21:52 -06:00
preseem_insights_live_test.exs fix(tests): enable TOTP in remaining test setups 2026-03-06 07:36:19 -06:00
settings_live_members_test.exs perf(tests): remove/reduce Process.sleep calls for faster tests 2026-03-06 07:57:30 -06:00
settings_live_property_test.exs fix(tests): enable TOTP in remaining test setups 2026-03-06 07:36:19 -06:00
settings_live_test.exs fix(tests): enable TOTP in remaining test setups 2026-03-06 07:36:19 -06:00