1 Commits

Author SHA1 Message Date
s1d3sw1ped_bot de465d6818 api/ui: Allow per-scratch TTL down to 1m
Format / gofmt (push) Successful in 13s
CI / Build (push) Successful in 22s
CI / Go Tests (push) Successful in 23s
Format / gofmt (pull_request) Successful in 12s
CI / Build (pull_request) Successful in 20s
CI / Go Tests (pull_request) Successful in 20s
#4
2026-09-01 21:16:36 +00:00
-6
View File
@@ -56,12 +56,6 @@ func TestValidateAppliesDefaultsAndParsedFields(t *testing.T) {
if cfg.Limits.DefaultTTLDuration != 15*time.Minute {
t.Fatalf("DefaultTTLDuration = %s, want 15m", cfg.Limits.DefaultTTLDuration)
}
if MaxScratchTTL != 24*time.Hour {
t.Fatalf("MaxScratchTTL = %s, want 24h", MaxScratchTTL)
}
if MinScratchTTL != time.Minute {
t.Fatalf("MinScratchTTL = %s, want 1m", MinScratchTTL)
}
if cfg.Limits.RawCacheMaxBytes != 200*1024*1024 {
t.Fatalf("RawCacheMaxBytes = %d, want %d", cfg.Limits.RawCacheMaxBytes, int64(200*1024*1024))
}