ЛР 5 — БВТ2302 — Лебедев — на 5

This commit is contained in:
2026-11-22 23:05:53 +03:00
parent 276dbdad8a
commit fbd04ce238
112 changed files with 9536 additions and 16 deletions
+15
View File
@@ -0,0 +1,15 @@
# 2026-11-21T15:24:22Z commit=n/a host=Linux 6.18.44-fc-v726 x86_64 cpus=2
$ dc run --rm --no-deps -T -v /home/claude/work5/mtusi2026lab5/student-tests:/app/student-tests:ro --entrypoint python api student-tests/test_cache_race.py
Container mtusi-lab5-api-run-2e97b94809c6 Creating
Container mtusi-lab5-api-run-2e97b94809c6 Created
PASS read-through put makes entry readable
PASS entry TTL capped by SESSION_CACHE_TTL_SECONDS pttl=59999ms
PASS invalidate removes entry
PASS late put after logout is refused by tombstone
PASS tombstone outlives any cache entry pttl=74999ms
PASS entry never outlives session expiry pttl=1199ms
PASS expired session not served from cache
cache unavailable; falling back to PostgreSQL
PASS degraded mode: cache is not read until outbox drained
summary: all passed
exit=0