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.
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
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")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user