Skip to content

Commit

Permalink
Use the new_pipeline_from_string in devutils
Browse files Browse the repository at this point in the history
We have changed the method signature between 5.x and master, I have now
refactored the test to use the new new_pipeline_from_string helper
defined in devutils.

Fixes logstash-plugins#72
  • Loading branch information
ph committed Jun 5, 2017
1 parent 1771df3 commit 49d3e1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/inputs/elasticsearch_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@
}
]

pipeline = LogStash::Pipeline.new(config_metadata_with_string)
pipeline = new_pipeline_from_string(config_metadata_with_string)
queue = Queue.new
pipeline.instance_eval do
@output_func = lambda { |event| queue << event }
Expand Down

0 comments on commit 49d3e1c

Please sign in to comment.