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