Sha256: 8538c9c14a7fbded82d5de6bc899bac5dd712f6c78ad0874554f97ec02a384c9

Contents?: true

Size: 379 Bytes

Versions: 6

Compression:

Stored size: 379 Bytes

Contents

require 'spec_helper'

describe 'Bulk writes' do
  before do
    authorized_collection.drop
  end

  context 'when bulk write is larger than 48MB' do
    let(:operations) do
      [ { insert_one: { text: 'a' * 1000 * 1000 } } ] * 48
    end

    it 'succeeds' do
      expect do
        authorized_collection.bulk_write(operations)
      end.not_to raise_error
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
mongo-2.13.3 spec/integration/bulk_write_spec.rb
mongo-2.13.2 spec/integration/bulk_write_spec.rb
mongo-2.13.1 spec/integration/bulk_write_spec.rb
mongo-2.12.4 spec/integration/bulk_write_spec.rb
mongo-2.13.0 spec/integration/bulk_write_spec.rb
mongo-2.12.3 spec/integration/bulk_write_spec.rb