diff --git a/tests/end2end_tests/tests/alternate_port_test/docker-compose.yaml b/tests/end2end_tests/tests/alternate_port_test/docker-compose.yaml index 30008e3c4..3230ed750 100644 --- a/tests/end2end_tests/tests/alternate_port_test/docker-compose.yaml +++ b/tests/end2end_tests/tests/alternate_port_test/docker-compose.yaml @@ -35,3 +35,9 @@ services: image: atsigncompany/sshnp-e2e-runtime:local depends_on: - image-runtime-local + healthcheck: + test: ["CMD", "grep", "-Eq", "monitor started for @", "/atsign/err.txt"] + start_period: 10s # Wait 10 seconds before checking + interval: 5s # Check every 5 seconds + timeout: 1s # If a check takes longer than a second, consider it a failed check + retries: 180 # Retry the check 180 times (180 * 5s = 15 mins)