mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2025-04-04 00:17:06 +00:00
Check system logs for errors
This commit is contained in:
parent
c6816d5641
commit
445cd812e6
@ -204,7 +204,7 @@ test_intl_domains() {
|
||||
test_totp() {
|
||||
test_start "totp"
|
||||
|
||||
# local intl alias
|
||||
# alice
|
||||
local alice="alice@somedomain.com"
|
||||
local alice_pw="$(generate_password 16)"
|
||||
|
||||
@ -272,6 +272,13 @@ test_totp() {
|
||||
mgmt_assert_admin_me "$alice" "$alice_pw" "ok"
|
||||
fi
|
||||
fi
|
||||
|
||||
# check for errors in system logs
|
||||
if ! have_test_failures; then
|
||||
assert_check_logs
|
||||
else
|
||||
check_logs
|
||||
fi
|
||||
|
||||
mgmt_assert_delete_user "$alice"
|
||||
test_end
|
||||
|
Loading…
Reference in New Issue
Block a user