From ab8e3f93c6bd04b65385d2e6c71b37e51f44f9db Mon Sep 17 00:00:00 2001 From: SergeantPanda Date: Mon, 13 Jul 2026 23:31:31 +0000 Subject: [PATCH] tests: Fix backend timeshift test. --- apps/timeshift/tests/test_views.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/apps/timeshift/tests/test_views.py b/apps/timeshift/tests/test_views.py index 73e55bc4..9aab8306 100644 --- a/apps/timeshift/tests/test_views.py +++ b/apps/timeshift/tests/test_views.py @@ -2233,6 +2233,12 @@ class TimeshiftSessionRedirectTests(TestCase): client_user_agent="vlc-test", busy="1", ) + # Programme-change preempt ignores hops within the startup window. + redis.hset( + views._pool_key(existing), + "last_activity", + str(time.time() - 10.0), + ) request = self.factory.get( "/timeshift/u/p/8/2026-06-08:17-30/8.ts", HTTP_USER_AGENT="vlc-test",