Sha256: 7170ceb934381219d608ee1b720da90bdbb1f65eb481ad81cc0eabc45c8235f5
Contents?: true
Size: 812 Bytes
Versions: 4
Compression:
Stored size: 812 Bytes
Contents
require 'spec_helper' require 'timeout' describe 'Protocol Buffers', test_client: true do describe 'interrupted requests' do let(:bucket){ random_bucket 'interrupted_requests' } before do first = bucket.new 'first' first.data = 'first' first.content_type = 'text/plain' first.store second = bucket.new 'second' second.data = 'second' second.content_type = 'text/plain' second.store end it 'fails out when a request is interrupted, and never returns the wrong payload' do expect do Timeout.timeout 1 do loop do expect(bucket.get('first').data).to eq 'first' end end end.to raise_error Timeout::Error expect(bucket.get('second').data).to eq 'second' end end end
Version data entries
4 entries across 4 versions & 1 rubygems