mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2025-08-03 01:24:52 +02:00
improvement: get rid of subshell + exec
in helper-functions.sh
(#2401)
* get rid of subshell + exec The new way of executing `sha512sum` should work as well as the old way but without the clutter and possible problems the usage of subshells + exec incurs. Moreover, there was a misconception about array expansion. Using `""` around an expanding array (`${ARRAY[@]}`) is quite fine (and actually the preffered way), not because it makes the expansion _one_ string (this would be `${ARRAY[*]}`), but it makes sure when elements are expanded, each element has `""` around them so to speak, i.e. there is no re-splitting of these elements. * removed old concerns in comments * increase test and check for changes sleep duration
This commit is contained in:
parent
7b21db77cc
commit
ede2b2394a
3 changed files with 19 additions and 24 deletions
|
@ -48,7 +48,7 @@ function teardown_file() {
|
|||
|
||||
@test "checking changedetector: can detect changes & between two containers using same config" {
|
||||
echo "" >> "$(private_config_path mail_changedetector_one)/postfix-accounts.cf"
|
||||
sleep 15
|
||||
sleep 25
|
||||
run docker exec mail_changedetector_one /bin/bash -c "supervisorctl tail -3000 changedetector"
|
||||
assert_output --partial "postfix: stopped"
|
||||
assert_output --partial "postfix: started"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue