Skip to content

Commit 94ce471

Browse files
sntiwari1claude
andcommitted
Fix async test: wait for metrics service (port 8070) before running tests
The second E2E suite tests http://localhost:8070/v1/metrics but the Makefile only waited for keycloak (8080) and registry (8081). Metrics starts after both kafka and registry are healthy, so it may not be ready by the time Karate reaches that test. Add wait_for_port.sh 8070 to ensure the metrics service is accepting connections first. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 5d4f09d commit 94ce471

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ test: build
4242
@docker-compose -f docker-compose-v1.yml --env-file test_environments/test_with_asyncCreate_events_notifications.env up -d db es clickhouse redis keycloak registry certificate-signer certificate-api kafka zookeeper notification-ms metrics
4343
@echo "Starting the test" && sh build/wait_for_port.sh 8080
4444
@echo "Starting the test" && sh build/wait_for_port.sh 8081
45+
@echo "Starting the test" && sh build/wait_for_port.sh 8070
4546
@docker-compose -f docker-compose-v1.yml ps
4647
@curl -v http://localhost:8081/health
4748
@cd java/apitest && MODE=async ../mvnw -Pe2e test

0 commit comments

Comments
 (0)