From 215dbece106eb98eec7279351e975e085c05fee2 Mon Sep 17 00:00:00 2001 From: dblock Date: Fri, 19 Apr 2024 08:20:17 -0400 Subject: [PATCH] Set discovery.type. Signed-off-by: dblock --- .github/workflows/test_unreleased.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test_unreleased.yml b/.github/workflows/test_unreleased.yml index ac681f6e..8bc71fe3 100644 --- a/.github/workflows/test_unreleased.yml +++ b/.github/workflows/test_unreleased.yml @@ -51,9 +51,9 @@ jobs: working-directory: opensearch/distribution/archives/linux-tar/build/distributions run: | tar xf opensearch-min-* - echo "discovery.type: single-node" >> ./opensearch-*/config/opensearch.yml - ./opensearch-*/bin/opensearch & - for attempt in {1..20}; do sleep 5; if curl -s localhost:9200; then echo '=====> ready'; break; fi; echo '=====> waiting...'; done + ./opensearch-*/bin/opensearch -E discovery.type=single-node & + sleep 15 + curl -s http://localhost:9200 - name: Checkout PHP Client uses: actions/checkout@v2 @@ -73,9 +73,8 @@ jobs: - name: Wait for Search server run: php ./.github/wait_for_opensearch.php - - name: Integration tests run: | composer run integration env: - OPENSEARCH_URL: 'http://localhost:9200' + OPENSEARCH_URL: http://localhost:9200