fix fuzzing imapserver by not triggering the rate limiter

This commit is contained in:
Mechiel Lukkien
2023-04-20 14:58:05 +02:00
parent 08eb1a5472
commit 6eff832d09
2 changed files with 5 additions and 1 deletions

View File

@ -73,6 +73,7 @@ func FuzzServer(f *testing.F) {
f.Fuzz(func(t *testing.T, s string) {
run := func(cmds []string) {
limitersInit() // Reset rate limiters.
serverConn, clientConn := net.Pipe()
defer serverConn.Close()
defer clientConn.Close()