mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2025-08-04 18:15:29 +02:00
Fixed tests for #143
This commit is contained in:
parent
f5f6637233
commit
bc7b42e4bc
2 changed files with 7 additions and 10 deletions
6
Makefile
6
Makefile
|
@ -1,5 +1,4 @@
|
|||
BRANCH := $(shell git rev-parse --abbrev-ref HEAD)
|
||||
NAME = tvial/docker-mailserver:$(BRANCH)
|
||||
NAME = tvial/docker-mailserver:testing
|
||||
|
||||
all: build-no-cache run fixtures tests clean
|
||||
all-fast: build run fixtures tests clean
|
||||
|
@ -51,7 +50,7 @@ fixtures:
|
|||
docker exec mail /bin/sh -c "nc 0.0.0.0 25 < /tmp/docker-mailserver-test/email-templates/existing-user.txt"
|
||||
docker exec mail /bin/sh -c "nc 0.0.0.0 25 < /tmp/docker-mailserver-test/email-templates/non-existing-user.txt"
|
||||
# Wait for mails to be analyzed
|
||||
sleep 10
|
||||
sleep 20
|
||||
|
||||
tests:
|
||||
# Start tests
|
||||
|
@ -60,4 +59,3 @@ tests:
|
|||
clean:
|
||||
# Remove running test containers
|
||||
docker rm -f mail mail_pop3 mail_smtponly mail_fail2ban fail-auth-mailer
|
||||
rm -rf "$(pwd)/test/config/empty" && mkdir -p "$(pwd)/test/config/empty"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue