Add functionality to backfill potential stale session in portal

Also get rid of unnecessary changes from previous commit
This commit is contained in:
Taras Kushnir
2025-11-16 21:08:55 +02:00
parent e6b68a214e
commit 16e4244077
18 changed files with 235 additions and 71 deletions
+2 -2
View File
@@ -124,8 +124,8 @@ func TestGetPuzzleWithoutSubscription(t *testing.T) {
}
sitekey := db.UUIDToSiteKey(property.ExternalID)
if err := cache.Delete(ctx, db.PropertyBySitekeyCacheKey(sitekey)); err != nil {
t.Fatal(err)
if found := cache.Delete(ctx, db.PropertyBySitekeyCacheKey(sitekey)); !found {
t.Fatal("property was not found in cache")
}
puzzleSuiteWithBackfillWait(t, ctx, sitekey, property.Domain)