Sha256: 940a670622c883806a34c38bd6af96197cc76ce8125f95b1b0b20509193357ce

Contents?: true

Size: 758 Bytes

Versions: 18

Compression:

Stored size: 758 Bytes

Contents

# frozen_string_literal: true
# encoding: utf-8

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

18 entries across 18 versions & 1 rubygems

Version Path
mongo-2.16.4 spec/integration/retryable_writes/shared/supports_modern_retries.rb
mongo-2.17.4 spec/integration/retryable_writes/shared/supports_modern_retries.rb
mongo-2.18.3 spec/integration/retryable_writes/shared/supports_modern_retries.rb
mongo-2.18.2 spec/integration/retryable_writes/shared/supports_modern_retries.rb
mongo-2.17.3 spec/integration/retryable_writes/shared/supports_modern_retries.rb
mongo-2.18.1 spec/integration/retryable_writes/shared/supports_modern_retries.rb
mongo-2.18.0 spec/integration/retryable_writes/shared/supports_modern_retries.rb
mongo-2.17.2 spec/integration/retryable_writes/shared/supports_modern_retries.rb
mongo-2.16.3 spec/integration/retryable_writes/shared/supports_modern_retries.rb
mongo-2.18.0.beta1 spec/integration/retryable_writes/shared/supports_modern_retries.rb
mongo-2.16.2 spec/integration/retryable_writes/shared/supports_modern_retries.rb
mongo-2.17.1 spec/integration/retryable_writes/shared/supports_modern_retries.rb
mongo-2.16.1 spec/integration/retryable_writes/shared/supports_modern_retries.rb
mongo-2.17.0 spec/integration/retryable_writes/shared/supports_modern_retries.rb
mongo-2.16.0 spec/integration/retryable_writes/shared/supports_modern_retries.rb
mongo-2.15.1 spec/integration/retryable_writes/shared/supports_modern_retries.rb
mongo-2.16.0.alpha1 spec/integration/retryable_writes/shared/supports_modern_retries.rb
mongo-2.15.0 spec/integration/retryable_writes/shared/supports_modern_retries.rb