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) |
||
|---|---|---|
| .. | ||
| config.exs | ||
| dev.exs | ||
| prod.exs | ||
| runtime.exs | ||
| test.exs | ||