spec/integration/outputs/sqs_spec.rb in logstash-output-sqs-4.0.3 vs spec/integration/outputs/sqs_spec.rb in logstash-output-sqs-5.0.0
- old
+ new
@@ -70,20 +70,18 @@
after do
subject.close
end
context 'with batching disabled' do
- let(:config) { super.merge('batch' => false) }
+ let(:config) { super.merge('batch_events' => 1) }
it 'publishes to SQS' do
subject.multi_receive_encoded(sample_events)
expect(receive_all_messages(@queue_url).count).to eq(sample_events.count)
end
end
- context 'with batching enabled' do
- let(:config) { super.merge('batch' => true) }
-
+ context 'with batching enabled (default)' do
it 'publishes to SQS' do
subject.multi_receive_encoded(sample_events)
expect(receive_all_messages(@queue_url).count).to eq(sample_events.count)
end
end