Commit 209e7aa7 by Toby Lawrence

Wait 10s after starting ElasticSearch.

Now that MongoDB 3.0 seems to download/untar faster than 2.6, we seem to
be right over the line of how quickly ES can start up and be listening
for connections, which leads the tests to try and connect too quickly,
which fails.

By sleeping for 10 seconds after starting ElasticSearch, it's almost a
certainty it will be up and running by the time we try to first connect
to it.
parent 5076f2bd
...@@ -14,6 +14,7 @@ before_install: ...@@ -14,6 +14,7 @@ before_install:
- curl -O https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.90.13.zip - curl -O https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.90.13.zip
- unzip elasticsearch-0.90.13.zip - unzip elasticsearch-0.90.13.zip
- elasticsearch-0.90.13/bin/elasticsearch - elasticsearch-0.90.13/bin/elasticsearch
- sleep 10
# Run MongoDB as a daemon # Run MongoDB as a daemon
- curl -O https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-3.0.12.tgz - curl -O https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-3.0.12.tgz
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment