From c9bd3f3e83269bfea72071e25f7e5c0cde3ee967 Mon Sep 17 00:00:00 2001 From: Erik Wramner Date: Sat, 10 Aug 2019 08:34:18 +0200 Subject: [PATCH] Added sleep to test that keeps failing randomly --- test/tests.bats | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/tests.bats b/test/tests.bats index e65e6693..cc28458b 100644 --- a/test/tests.bats +++ b/test/tests.bats @@ -1290,6 +1290,11 @@ function count_processed_changes() { [ "${originalChangesProcessed}" != "$(count_processed_changes mail)" ] assert_success + # Dovecot has been restarted, but this test often fails so presumably it may not be ready + # Add a short sleep to see if that helps to make the test more stable + # Alternatively we could login with a known good user to make sure that the service is up + sleep 2 + result=$(docker exec mail doveadm auth test -x service=smtp setup_email_add@example.com 'test_password' | grep 'auth succeeded') [ "$result" = "passdb: setup_email_add@example.com auth succeeded" ] }