Sha256: a068be335af0fc3f9bd796e0ad55482bd9a0e8dfdabe6605bb48a9d6a62942b8

Contents?: true

Size: 575 Bytes

Versions: 18

Compression:

Stored size: 575 Bytes

Contents

# frozen_string_literal: true
# encoding: utf-8

require_relative './performs_legacy_retries'

module SupportsLegacyRetries
  shared_examples 'it supports legacy retries' do
    context 'when server does not support modern retries' do
      before do
        allow_any_instance_of(Mongo::Server).to receive(:retry_writes?).and_return(false)
      end

      it_behaves_like 'it performs legacy retries'
    end

    context 'when client is set to use legacy retries' do
      let(:retry_writes) { false }

      it_behaves_like 'it performs legacy 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_legacy_retries.rb
mongo-2.17.4 spec/integration/retryable_writes/shared/supports_legacy_retries.rb
mongo-2.18.3 spec/integration/retryable_writes/shared/supports_legacy_retries.rb
mongo-2.18.2 spec/integration/retryable_writes/shared/supports_legacy_retries.rb
mongo-2.17.3 spec/integration/retryable_writes/shared/supports_legacy_retries.rb
mongo-2.18.1 spec/integration/retryable_writes/shared/supports_legacy_retries.rb
mongo-2.18.0 spec/integration/retryable_writes/shared/supports_legacy_retries.rb
mongo-2.17.2 spec/integration/retryable_writes/shared/supports_legacy_retries.rb
mongo-2.16.3 spec/integration/retryable_writes/shared/supports_legacy_retries.rb
mongo-2.18.0.beta1 spec/integration/retryable_writes/shared/supports_legacy_retries.rb
mongo-2.16.2 spec/integration/retryable_writes/shared/supports_legacy_retries.rb
mongo-2.17.1 spec/integration/retryable_writes/shared/supports_legacy_retries.rb
mongo-2.16.1 spec/integration/retryable_writes/shared/supports_legacy_retries.rb
mongo-2.17.0 spec/integration/retryable_writes/shared/supports_legacy_retries.rb
mongo-2.16.0 spec/integration/retryable_writes/shared/supports_legacy_retries.rb
mongo-2.15.1 spec/integration/retryable_writes/shared/supports_legacy_retries.rb
mongo-2.16.0.alpha1 spec/integration/retryable_writes/shared/supports_legacy_retries.rb
mongo-2.15.0 spec/integration/retryable_writes/shared/supports_legacy_retries.rb