Skip to content

Commit

Permalink
replace smtpd with aiosmtpd in the test_header file
Browse files Browse the repository at this point in the history
  • Loading branch information
wxtim committed Nov 6, 2023
1 parent 3183cab commit b7cc2c2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ report-timings =
pandas==1.*
matplotlib
tests =
aiostmpd
async_generator
bandit>=1.7.0
coverage>=5.0.0,<7.3.1
Expand Down
2 changes: 1 addition & 1 deletion tests/functional/lib/bash/test_header
Original file line number Diff line number Diff line change
Expand Up @@ -807,7 +807,7 @@ mock_smtpd_init() { # Logic borrowed from Rose
local SMTPD_LOG="${TEST_DIR}/smtpd.log"
local SMTPD_HOST="localhost:${SMTPD_PORT}"
# Set up fake SMTP server to catch outgoing mail & redirect to log:
python3 -u -m 'smtpd' -c 'DebuggingServer' -d -n "${SMTPD_HOST}" \
python3 -u -m 'aiosmtpd' stderr -dnl "${SMTPD_HOST}" \
1>"${SMTPD_LOG}" 2>&1 & # Runs in background
local SMTPD_PID="$!"
while ! grep -q 'DebuggingServer started' "${SMTPD_LOG}" 2>'/dev/null'
Expand Down

0 comments on commit b7cc2c2

Please sign in to comment.