Sha256: 2ef968011c1044741f0a8a29743a3a17e702c906ff50b5e8cef4e541ecca3849

Contents?: true

Size: 335 Bytes

Versions: 14

Compression:

Stored size: 335 Bytes

Contents

# start up on the travis ci environment.
if (ENV['CI'] == 'travis')
  starting = true
  client = Mongo::Client.new(['127.0.0.1:27017'])
  while starting
    begin
      client.command(Mongo::Server::Monitor::STATUS)
      break
    rescue Mongo::Error::OperationFailure => e
      sleep(2)
      client.cluster.scan!
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
mongo-2.1.2 spec/support/travis.rb
mongo-2.1.1 spec/support/travis.rb
mongo-2.1.0 spec/support/travis.rb
mongo-2.1.0.rc0 spec/support/travis.rb
mongo-2.1.0.beta spec/support/travis.rb
mongo-2.0.6 spec/support/travis.rb
mongo-2.0.5 spec/support/travis.rb
mongo-2.0.4 spec/support/travis.rb
mongo-2.0.3 spec/support/travis.rb
mongo-2.0.2 spec/support/travis.rb
mongo-2.0.1 spec/support/travis.rb
mongo-2.0.0 spec/support/travis.rb
mongo-2.0.0.rc spec/support/travis.rb
mongo-2.0.0.beta spec/support/travis.rb