diff --git a/.github/workflows/test_unreleased.yml b/.github/workflows/test_unreleased.yml index ac681f6e..c41e0119 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 + nohup ./opensearch-*/bin/opensearch -E discovery.type=single-node > nohup.out 2> nohup.err < /dev/null & + 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