From 9ea8c4c71ad3073ca7c6dfc9c3271c9c729a0d50 Mon Sep 17 00:00:00 2001 From: tgiachi Date: Tue, 10 Nov 2026 11:55:14 +0100 Subject: [PATCH] test(archive): give the pathological HTML check headroom under -race - it is linear (about 1.5 s per MiB under -race); a quadratic one would take minutes, so 15 s still catches it --- internal/archive/archive_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/archive/archive_test.go b/internal/archive/archive_test.go index d40ddd2..1add6bd 100644 --- a/internal/archive/archive_test.go +++ b/internal/archive/archive_test.go @@ -329,7 +329,7 @@ func TestPathologicalHTMLIsNotQuadratic(t *testing.T) { } { html := strings.Repeat(frag, MaxBody/len(frag)) raw := "Subject: h\r\nContent-Type: text/html\r\n\r\n" + html - t.Run(name, func(t *testing.T) { parseWithin(t, raw, 3*time.Second) }) + t.Run(name, func(t *testing.T) { parseWithin(t, raw, 15*time.Second) }) } }