From b54bce7b7762f014e5a819d053120e5bdb6612c6 Mon Sep 17 00:00:00 2001 From: Dominik Winter Date: Sat, 13 Feb 2016 05:37:06 +0100 Subject: [PATCH] fixed timing problem for fail2ban test --- test/test.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/test.sh b/test/test.sh index e7be5319..d855fc00 100644 --- a/test/test.sh +++ b/test/test.sh @@ -95,11 +95,13 @@ docker exec mail /bin/sh -c 'nc -w 1 0.0.0.0 25 < /tmp/test/auth/smtp-auth-login docker exec mail /bin/sh -c 'nc -w 1 0.0.0.0 25 < /tmp/test/auth/smtp-auth-login-wrong.txt' &> /dev/null docker exec mail /bin/sh -c 'nc -w 1 0.0.0.0 25 < /tmp/test/auth/smtp-auth-login-wrong.txt' &> /dev/null +sleep 10 assert_raises "docker exec mail fail2ban-client status sasl | grep 'IP list:\s*127.0.0.1'" 0 docker exec mail fail2ban-client set sasl addignoreip 127.0.0.1/8 &> /dev/null docker exec mail fail2ban-client set sasl unbanip 127.0.0.1 &> /dev/null +sleep 10 assert_raises "docker exec mail fail2ban-client status sasl | grep 'IP list:\s*127.0.0.1'" 1 # Ending tests