Skip to content

Commit 2785288

Browse files
committed
Use ES cluster health API in Travis script
1 parent 882b241 commit 2785288

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.travis/before_script.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,6 @@ case $TEST_SUITE in
4949

5050
cd ../../..
5151
echo "Wait for ElasticSearch on port 9200..."
52-
until curl -I -XHEAD localhost:9200; do sleep 1; done
52+
curl -X GET localhost:9200/_cluster/health?wait_for_status=yellow&timeout=10s
5353
;;
5454
esac

0 commit comments

Comments
 (0)