mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 14:47:19 -04:00
Fix a warning in the tests
When running the test for the `ShutdownWatcher` in the full suite, the logger of the class was incorrectly setup, this PR make sure we use a silent logger instead. Fixes #4581 Fixes #4582
This commit is contained in:
parent
2eddfcfb0c
commit
97e1034854
1 changed files with 3 additions and 0 deletions
|
@ -3,6 +3,7 @@ require "spec_helper"
|
|||
require "logstash/shutdown_watcher"
|
||||
|
||||
describe LogStash::ShutdownWatcher do
|
||||
let(:channel) { Cabin::Channel.new }
|
||||
|
||||
let(:check_every) { 0.01 }
|
||||
let(:check_threshold) { 100 }
|
||||
|
@ -13,6 +14,8 @@ describe LogStash::ShutdownWatcher do
|
|||
report_count = 0
|
||||
|
||||
before :each do
|
||||
LogStash::ShutdownWatcher.logger = channel
|
||||
|
||||
allow(pipeline).to receive(:reporter).and_return(reporter)
|
||||
allow(reporter).to receive(:snapshot).and_return(reporter_snapshot)
|
||||
allow(reporter_snapshot).to receive(:o_simple_hash).and_return({})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue