mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2025-08-31 07:09:57 +02:00
tests: refactor POP3, IMAP (actually SASLauthd + RIMAP) & relay (#3062)
* refactor `mail_pop3.bats` * refactor `mail_with_imap.bats` * refactor `mail_with_relays.bats` * moved test that that did not belong into POP3 test * slightly clean up `no_container.bats` Co-authored-by: Brennan Kinney <5098581+polarathene@users.noreply.github.com>
This commit is contained in:
parent
4efbbbe571
commit
2caec2cdf6
6 changed files with 134 additions and 156 deletions
|
@ -221,6 +221,7 @@ function _run_until_success_or_timeout() {
|
|||
|
||||
local STARTTIME=${SECONDS}
|
||||
|
||||
# shellcheck disable=SC2154
|
||||
until run "${@}" && [[ ${status} -eq 0 ]]
|
||||
do
|
||||
sleep 1
|
||||
|
@ -367,6 +368,7 @@ function _add_mail_account_then_wait_until_ready() {
|
|||
#
|
||||
# @param ${1} = number of lines that the output should have
|
||||
function _should_output_number_of_lines() {
|
||||
# shellcheck disable=SC2154
|
||||
assert_equal "${#lines[@]}" "${1:?Number of lines not provided}"
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue