Sha256: a117ad33ba00a2d9317063f8b98b682d2efb59a0235aec4c6528444cec53a85d

Contents?: true

Size: 709 Bytes

Versions: 10

Compression:

Stored size: 709 Bytes

Contents

require_relative './performs_modern_retries'
require_relative './performs_no_retries'

module SupportsModernRetries
  shared_examples 'it supports modern retries' do
    let(:retry_writes) { true }

    context 'against a standalone server' do
      require_topology :single

      before(:all) do
        skip 'RUBY-2171: standalone topology currently uses legacy write retries ' \
          'by default. Standalone should NOT retry when modern retries are enabled.'
      end

      it_behaves_like 'it performs no retries'
    end

    context 'against a replica set or sharded cluster' do
      require_topology :replica_set, :sharded

      it_behaves_like 'it performs modern retries'
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
mongo-2.13.3 spec/integration/retryable_writes/shared/supports_modern_retries.rb
mongo-2.14.1 spec/integration/retryable_writes/shared/supports_modern_retries.rb
mongo-2.15.0.alpha spec/integration/retryable_writes/shared/supports_modern_retries.rb
mongo-2.13.2 spec/integration/retryable_writes/shared/supports_modern_retries.rb
mongo-2.14.0 spec/integration/retryable_writes/shared/supports_modern_retries.rb
mongo-2.14.0.rc1 spec/integration/retryable_writes/shared/supports_modern_retries.rb
mongo-2.13.1 spec/integration/retryable_writes/shared/supports_modern_retries.rb
mongo-2.13.0 spec/integration/retryable_writes/shared/supports_modern_retries.rb
mongo-2.13.0.rc1 spec/integration/retryable_writes/shared/supports_modern_retries.rb
mongo-2.13.0.beta1 spec/integration/retryable_writes/shared/supports_modern_retries.rb