Drop one-shot tmp/axe scripts and agent i18n scratch so the Gitea tree is deployable.
30 lines
692 B
Go
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")
|
|
}
|
|
}
|