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
This commit is contained in:
parent
38552f8025
commit
9ea8c4c71a
1 changed files with 1 additions and 1 deletions
|
|
@ -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) })
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue