The test computed recent_t = (truncated_to_top_of_hour now) - 30min, which is 30-90 min before real utc_now() depending on what minute the test runs at. The LiveView's `cutoff = utc_now() - 1h` then dropped recent_t whenever the real-time minute exceeded ~30, so the test failed half the time. Anchor recent_t at the top of the current hour — that's always within the 1-hour window regardless of minute. The test still exercises the "keep within last hour" path; just stops being clock-flaky. |
||
|---|---|---|
| .. | ||
| controllers | ||
| live | ||
| plugs | ||
| analytics_test.exs | ||
| live_helpers_test.exs | ||
| live_table_footer_test.exs | ||
| location_resolver_test.exs | ||
| metrics_log_suppression_test.exs | ||
| metrics_plug_test.exs | ||
| skew_t_property_test.exs | ||
| skew_t_test.exs | ||
| telemetry_test.exs | ||
| user_auth_test.exs | ||