From f728154eac6676c9dc438096cb7630544dd2055d Mon Sep 17 00:00:00 2001 From: Greg Meyer Date: Fri, 12 Aug 2016 13:00:40 -0400 Subject: [PATCH] adds comment about the wait --- ci/mongo.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ci/mongo.rb b/ci/mongo.rb index 38a6ae133d..e8d516fca8 100644 --- a/ci/mongo.rb +++ b/ci/mongo.rb @@ -67,6 +67,8 @@ def mongo_rootdir --eval "printjson(rs.initiate()); printjson(rs.conf());" '#{hostname}:37017' \ >> $VOLATILE_DIR/mongo1.log) + # mongo 2 takes longer to spin up than mongo 3. Without this wait, + # it will all break because it takes too long to come up. sleep_for 30 sh %(#{mongo_rootdir}/bin/mongo\ --eval "cfg = rs.conf(); cfg.members[0].host = '#{hostname}:37017';\