fix: 1.4.7 default unban log path
Release / Gitea release (push) Successful in 5s
Release / Plan (reuse the published image?) (push) Successful in 4s
Release / ci (push) Successful in 1m10s
Release / Build image (amd64) (push) Successful in 23s
Release / Build image (arm64) (push) Successful in 1m20s
Release / Publish tags (push) Successful in 19s
CI / Format and vet (push) Successful in 33s
CI / Tests (Linux, race detector) (push) Successful in 37s
CI / Dependency audit (push) Successful in 37s
CI / Docker image (build and smoke test) (push) Skipped

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Lucas RayanandClaude Opus 5.5 committed 2026-11-15 02:01:31 -03:00
1 parent da333d70f1
commit 873219416f
5 files changed
+36 -2

No files matched your search

+9
View File
@@ -279,3 +279,12 @@ func TestSourceDegradedWindow(t *testing.T) {
t.Fatal("window must recover")
}
}
func TestUnbanLogPathDefault(t *testing.T) {
if got := unbanLogPath(Config{EnforceLog: "/logs/enforce/decisions.log"}); got != "/logs/enforce/unban.log" {
t.Fatalf("default unban log = %q", got)
}
if got := unbanLogPath(Config{EnforceLog: "/a/d.log", EnforceUnbanLog: "/b/u.log"}); got != "/b/u.log" {
t.Fatalf("explicit unban log = %q", got)
}
}