mirror of
https://blitiri.com.ar/repos/chasquid
synced 2025-12-20 15:07:03 +00:00
test: Fix "run without certificates" test
The test to check that chasquid fails on startup if there are no valid TLS certificates is passing, but for the wrong reasons: it fails because there is no logging directory, not because there are no certificates. This patch fixes the problem by moving the logs directory creation before the first test.
This commit is contained in:
@@ -5,6 +5,8 @@ set -e
|
||||
|
||||
init
|
||||
|
||||
mkdir -p .logs
|
||||
|
||||
if ! chasquid --version > /dev/null; then
|
||||
fail "chasquid --version failed"
|
||||
fi
|
||||
@@ -19,7 +21,6 @@ generate_certs_for testserver
|
||||
add_user user@testserver secretpassword
|
||||
add_user someone@testserver secretpassword
|
||||
|
||||
mkdir -p .logs
|
||||
chasquid -v=2 --logfile=.logs/chasquid.log --config_dir=config &
|
||||
wait_until_ready 1025
|
||||
|
||||
|
||||
Reference in New Issue
Block a user