Skip to content

Commit

Permalink
adds comment about the wait
Browse files Browse the repository at this point in the history
  • Loading branch information
gmmeyer committed Aug 12, 2016
1 parent fcf31d7 commit f728154
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ci/mongo.rb
Expand Up @@ -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';\
Expand Down

0 comments on commit f728154

Please sign in to comment.