mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 06:37:19 -04:00
Set @duration to agent run time
This commit is contained in:
parent
4203c788ed
commit
c9cf0be101
1 changed files with 4 additions and 0 deletions
|
@ -1,5 +1,7 @@
|
|||
require "insist"
|
||||
require "logstash/event"
|
||||
require "insist"
|
||||
require "stud/try"
|
||||
|
||||
if RUBY_VERSION < "1.9.2"
|
||||
$stderr.puts "Ruby 1.9.2 or later is required. (You are running: " + RUBY_VERSION + ")"
|
||||
|
@ -54,9 +56,11 @@ module LogStash
|
|||
config_str = @config_str
|
||||
describe "agent(#{@agent_count}) #{caller[1]}" do
|
||||
before :all do
|
||||
start = Time.now
|
||||
@agent = LogStash::Agent.new
|
||||
@agent.run(["-e", config_str])
|
||||
@agent.wait
|
||||
@duration = Time.now - start
|
||||
end
|
||||
it("looks good", &block)
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue