spec/integration/reconnect_spec.rb in mongo-2.11.6 vs spec/integration/reconnect_spec.rb in mongo-2.12.0.rc0

- old
+ new

@@ -52,13 +52,11 @@ end context 'SRV monitor thread' do let(:uri) do - "mongodb+srv://test1.test.build.10gen.cc/?tls=#{SpecConfig.instance.ssl?}&tlsInsecure=true".tap do |uri| - puts "Constructed URI: #{uri}" - end + "mongodb+srv://test1.test.build.10gen.cc/?tls=#{SpecConfig.instance.ssl?}" end # Debug logging to troubleshoot failures in Evergreen let(:logger) do Logger.new(STDERR). tap do |logger| @@ -66,12 +64,12 @@ end end let(:client) do ClientRegistry.instance.register_local_client( - Mongo::Client.new(uri, server_selection_timeout: 3.86, - logger: logger)) + Mongo::Client.new(uri, SpecConfig.instance.ssl_options.merge( + server_selection_timeout: 3.86, logger: logger))) end let(:wait_for_discovery) do client.cluster.next_primary end @@ -132,10 +130,13 @@ "mongodb+srv://test-fake.test.build.10gen.cc/" end let(:client) do ClientRegistry.instance.register_local_client( - Mongo::Client.new(uri, server_selection_timeout: 3.89, + Mongo::Client.new(uri, + timeout: 5, + connect_timeout: 5, + server_selection_timeout: 3.89, resolv_options: { nameserver: 'localhost', nameserver_port: [['localhost', 5300], ['127.0.0.1', 5300]], }, logger: logger))