Sha256: 44ed8cf2397f35d960bea76728e17a3867f8f39454aa2ecd49ed89c4c3f07b9f

Contents?: true

Size: 435 Bytes

Versions: 10

Compression:

Stored size: 435 Bytes

Contents

require_relative './supports_modern_retries'
require_relative './supports_legacy_retries'

module SupportsRetries
  shared_examples 'it supports retries' do
    it_behaves_like 'it supports modern retries'
    it_behaves_like 'it supports legacy retries'

    context 'when retry writes is off' do
      let(:retry_writes) { false }
      let(:max_write_retries) { 0 }

      it_behaves_like 'it performs no 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_retries.rb
mongo-2.14.1 spec/integration/retryable_writes/shared/supports_retries.rb
mongo-2.15.0.alpha spec/integration/retryable_writes/shared/supports_retries.rb
mongo-2.13.2 spec/integration/retryable_writes/shared/supports_retries.rb
mongo-2.14.0 spec/integration/retryable_writes/shared/supports_retries.rb
mongo-2.14.0.rc1 spec/integration/retryable_writes/shared/supports_retries.rb
mongo-2.13.1 spec/integration/retryable_writes/shared/supports_retries.rb
mongo-2.13.0 spec/integration/retryable_writes/shared/supports_retries.rb
mongo-2.13.0.rc1 spec/integration/retryable_writes/shared/supports_retries.rb
mongo-2.13.0.beta1 spec/integration/retryable_writes/shared/supports_retries.rb