diff --git a/compose.yaml b/compose.yaml index 8f5bfdb2..2d5491d9 100644 --- a/compose.yaml +++ b/compose.yaml @@ -25,6 +25,6 @@ services: # cap_add: # - NET_ADMIN healthcheck: - test: "ss --listening --tcp | grep -P 'LISTEN.+:smtp' || exit 1" + test: "ss --listening --ipv4 --tcp | grep --silent ':smtp' || exit 1" timeout: 3s retries: 0 diff --git a/test/tests/serial/tests.bats b/test/tests/serial/tests.bats index eff151df..fee78306 100644 --- a/test/tests/serial/tests.bats +++ b/test/tests/serial/tests.bats @@ -25,7 +25,7 @@ function setup_file() { --env SPOOF_PROTECTION=1 --env SSL_TYPE='snakeoil' --ulimit "nofile=$(ulimit -Sn):$(ulimit -Hn)" - --health-cmd "ss --listening --tcp | grep -P 'LISTEN.+:smtp' || exit 1" + --health-cmd "ss --listening --ipv4 --tcp | grep --silent ':smtp' || exit 1" ) _common_container_setup 'CONTAINER_ARGS_ENV_CUSTOM'