mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 14:47:19 -04:00
parent
aa5c5518cd
commit
2355db583f
1 changed files with 8 additions and 0 deletions
|
@ -64,9 +64,17 @@ describe LogStash::Api::Modules::Node do
|
|||
|
||||
context "When asking for human output and threads count" do
|
||||
before(:all) do
|
||||
# Make sure we have enough threads for this to work.
|
||||
@threads = []
|
||||
5.times { @threads << Thread.new { loop {} } }
|
||||
|
||||
do_request { get "/hot_threads?human=t&threads=2"}
|
||||
end
|
||||
|
||||
after(:all) do
|
||||
@threads.each { |t| t.kill } rescue nil
|
||||
end
|
||||
|
||||
let(:payload) { last_response.body }
|
||||
|
||||
it "should return information for <= # requested threads" do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue