tests: Fix backend timeshift test.
Some checks failed
Backend Tests / Plan test groups (push) Has been cancelled
CI Pipeline / prepare (push) Has been cancelled
Build and Push Multi-Arch Docker Image / build-and-push (push) Has been cancelled
Backend Tests / (push) Has been cancelled
CI Pipeline / docker (amd64, ubuntu-24.04) (push) Has been cancelled
CI Pipeline / docker (arm64, ubuntu-24.04-arm) (push) Has been cancelled
CI Pipeline / create-manifest (push) Has been cancelled

This commit is contained in:
SergeantPanda 2026-07-13 23:31:31 +00:00
parent ea9eaf4d0c
commit ab8e3f93c6

View file

@ -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",