internal: fix the tests broken by hardening

Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: If95a5258a393542564f68b3a1ebc7ff66a6a6964
This commit is contained in:
raf 2026-03-01 13:40:19 +03:00
commit da1fab4257
Signed by: NotAShelf
GPG key ID: 29D95B64378DB4BF
6 changed files with 17 additions and 17 deletions

View file

@ -121,7 +121,7 @@ func TestNormalizePath(t *testing.T) {
name: "very long path",
cfg: config.PathConfig{},
input: "/" + strings.Repeat("a", 2050),
want: "/" + strings.Repeat("a", 2050),
want: "/", // reject overly long paths
},
{
name: "dot segments only",