mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2024-01-19 02:48:50 +00:00
tests: Use mail.example.test
as common container hostname (#2975)
This commit is contained in:
parent
b7bad82e07
commit
304747fad9
|
@ -110,7 +110,7 @@ function common_container_create() {
|
|||
run docker create \
|
||||
--tty \
|
||||
--name "${CONTAINER_NAME}" \
|
||||
--hostname "${TEST_FQDN:-mail.my-domain.com}" \
|
||||
--hostname "${TEST_FQDN:-mail.example.test}" \
|
||||
--volume "${TEST_FILES_VOLUME}" \
|
||||
--volume "${TEST_CONFIG_VOLUME}" \
|
||||
--env ENABLE_AMAVIS=0 \
|
||||
|
|
|
@ -86,7 +86,7 @@ TEST_NAME_PREFIX='test helper functions:'
|
|||
# NOTE: Test requires external network access available
|
||||
@test "${TEST_NAME_PREFIX} wait_for_smtp_port_in_container returns immediately when port found" {
|
||||
local CONTAINER_NAME
|
||||
CONTAINER_NAME=$(docker run --rm -d alpine sh -c "sleep 10")
|
||||
CONTAINER_NAME=$(docker run --rm -d alpine sh -c "sleep 100")
|
||||
|
||||
docker exec "${CONTAINER_NAME}" apk add netcat-openbsd
|
||||
docker exec "${CONTAINER_NAME}" nc -l 25 &
|
||||
|
|
Loading…
Reference in a new issue