spec/sqewer/connection_spec.rb in sqewer-4.1.0 vs spec/sqewer/connection_spec.rb in sqewer-4.2.0

- old
+ new

@@ -27,10 +27,12 @@ conn = described_class.new('https://fake-queue.com') expect(conn).to receive(:send_multiple_messages).and_call_original conn.send_message('abcdef', delay_seconds: 5) end + + it 'retries on networking errors' end describe '#send_multiple_messages' do it 'sends 100 messages' do fake_sqs_client = double('Client') @@ -67,10 +69,13 @@ conn.send_multiple_messages do | b| 102.times { b.send_message("Hello - #{SecureRandom.uuid}") } end }.to raise_error(/messages failed to send/) end + + it 'retries on networking errors' + end describe '#delete_message' do it 'deletes a single message' end @@ -110,10 +115,12 @@ conn.delete_multiple_messages do | b| 102.times { b.delete_message(SecureRandom.uuid) } end }.to raise_error(/messages failed to delete/) end + + it 'retries on networking errors' end describe '#receive_messages' do it 'uses the batched receive feature' do s = described_class.new('https://fake-queue') @@ -130,7 +137,9 @@ :max_number_of_messages=>10}).and_return(fake_response) messages = s.receive_messages expect(messages.length).to eq(5) end + + it 'retries on networking errors' end end