git » chasquid » commit 7f44db0

test/t-11-dovecot: Disable authentication penalty

author Alberto Bertogli
2024-03-09 19:11:38 UTC
committer Alberto Bertogli
2024-03-12 20:43:21 UTC
parent 3c3c32e2fbafceb40d860cf04c9b1b1bbc6dc934

test/t-11-dovecot: Disable authentication penalty

Dovecot applies an authentication penalty, where it delays failed attempts.

Because we intentionally do bad authentications for testing, this slows
downs the tests significantly. So this patch disables it.

test/t-11-dovecot/config/dovecot.conf.in +4 -0

diff --git a/test/t-11-dovecot/config/dovecot.conf.in b/test/t-11-dovecot/config/dovecot.conf.in
index eb7a9be..dba6a0d 100644
--- a/test/t-11-dovecot/config/dovecot.conf.in
+++ b/test/t-11-dovecot/config/dovecot.conf.in
@@ -13,6 +13,10 @@ default_login_user = $USER
 # We drop the domain, to exercise "naked" auth handling.
 auth_username_format = "%n-x"
 
+# Disable authentication penalty, since we intentionally make failed requests
+# and it just slows down tests.
+auth_failure_delay = 0
+
 passdb {
 	driver = passwd-file
 	args = $ROOT/passwd