Scope the fingerprint invariant to the wired syncer and pin lease > scan timeout
ci/woodpecker/pr/pre-commit Pipeline was successful
ci/woodpecker/pr/test Pipeline was successful
ci/woodpecker/pr/build Pipeline was successful

This commit is contained in:
2026-10-25 20:31:59 +11:00
parent 9fb44c22d6
commit df4c397db9
3 changed files with 9 additions and 3 deletions
+6
View File
@@ -510,3 +510,9 @@ func TestSyncerScheduledPrime(t *testing.T) {
t.Fatalf("cold-cache prime: attempts=%d freshness=%v interval=%v, want 1/0/0", store.attempts, store.freshness, store.interval)
}
}
func TestSyncLeaseOutlivesScanTimeout(t *testing.T) {
if syncLeaseDuration <= defaultScanTimeout {
t.Fatalf("syncLeaseDuration %v must exceed defaultScanTimeout %v so scans stay serialised", syncLeaseDuration, defaultScanTimeout)
}
}