Sha256: 507398b8c787f78b1edef88710105fbd3e8c790ee6097bcb7d4108e0d7c1e4e9
Contents?: true
Size: 804 Bytes
Versions: 11
Compression:
Stored size: 804 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
11 entries across 11 versions & 2 rubygems