Files
greeneclipse 8580c996c3 Initial commit of Descrybe v2 without local scratch artifacts.
Drop one-shot tmp/axe scripts and agent i18n scratch so the Gitea tree is deployable.
2026-08-09 22:47:43 +02:00

30 lines
692 B
Go

package processing
import "testing"
func TestRetentionAgeIntervalAligned(t *testing.T) {
if RetentionAgeInterval != "30 days" {
t.Fatalf("RetentionAgeInterval=%q want 30 days", RetentionAgeInterval)
}
}
func TestRetentionBatchLimitPositive(t *testing.T) {
if RetentionBatchLimit <= 0 {
t.Fatalf("RetentionBatchLimit=%d want > 0", RetentionBatchLimit)
}
}
func TestCleanupExpiredNilPool(t *testing.T) {
_, err := CleanupExpired(t.Context(), nil)
if err == nil {
t.Fatal("expected error for nil pool")
}
}
func TestCleanupExpiredSyncJobsNilPool(t *testing.T) {
_, err := CleanupExpiredSyncJobs(t.Context(), nil)
if err == nil {
t.Fatal("expected error for nil pool")
}
}