mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2025-07-10 17:34:51 +02:00
Wait and retry if pre-defined user login fails
This commit is contained in:
parent
1f298e3a76
commit
e47c73f789
1 changed files with 5 additions and 0 deletions
|
@ -1212,6 +1212,11 @@ load 'test_helper/bats-assert/load'
|
||||||
|
|
||||||
|
|
||||||
@test "checking user login: predefined user can login" {
|
@test "checking user login: predefined user can login" {
|
||||||
|
# This should really not be necessary, but this test sometimes fails, probably due to timing
|
||||||
|
if ! (docker exec mail doveadm auth test -x service=smtp pass@localhost.localdomain 'may be \a `p^a.*ssword' >/dev/null); then
|
||||||
|
sleep 60
|
||||||
|
fi
|
||||||
|
|
||||||
result=$(docker exec mail doveadm auth test -x service=smtp pass@localhost.localdomain 'may be \a `p^a.*ssword' | grep 'auth succeeded')
|
result=$(docker exec mail doveadm auth test -x service=smtp pass@localhost.localdomain 'may be \a `p^a.*ssword' | grep 'auth succeeded')
|
||||||
[ "$result" = "passdb: pass@localhost.localdomain auth succeeded" ]
|
[ "$result" = "passdb: pass@localhost.localdomain auth succeeded" ]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue