Skip to content

Commit 05f3e66

Browse files
committed
fix tests
1 parent 419ead3 commit 05f3e66

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/unit/outputs/elasticsearch_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -770,7 +770,7 @@
770770
end
771771

772772
before(:each) do
773-
allow(subject.client).to receive(:bulk_send).with(instance_of(StringIO), instance_of(Array)) do |stream, actions|
773+
allow(subject.client).to receive(:bulk_send).with(instance_of(StringIO), instance_of(Array), instance_of(Hash)) do |stream, actions, headers|
774774
expect( stream.string ).to include '"foo":"bar1"'
775775
expect( stream.string ).to include '"foo":"bar2"'
776776
end.and_return(bulk_response, {"errors"=>false}) # let's make it go away (second call) to not retry indefinitely

0 commit comments

Comments
 (0)