Shutdown agent after pipelines

I actually am not sure if this matters, but it seems like it won't hurt,
and is a more sane ordering of things. I have a suspicion that in some cases
the agents get stuck and don't shut down because of this ordering, but I can't
prove it

Fixes #9628
This commit is contained in:
Andrew Cholakian 2018-05-21 21:12:39 -05:00
parent e2a6d8b753
commit fb16b7b984

View file

@ -31,11 +31,11 @@ shared_context "api setup" do
end
after :all do
@agent.shutdown
@pipelines.each do |_, pipeline|
pipeline.shutdown
pipeline.thread.join
end
@agent.shutdown
end
include Rack::Test::Methods