From 209e7aa731f57f6fe92a3a35837f3409c018e08f Mon Sep 17 00:00:00 2001 From: Toby Lawrence Date: Thu, 11 Aug 2016 16:34:30 -0400 Subject: [PATCH] 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. --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index 7d8bc94..69877a9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,6 +14,7 @@ before_install: - curl -O https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.90.13.zip - unzip elasticsearch-0.90.13.zip - elasticsearch-0.90.13/bin/elasticsearch + - sleep 10 # Run MongoDB as a daemon - curl -O https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-3.0.12.tgz