mirror of
https://github.com/elastic/logstash.git
synced 2025-04-23 22:27:21 -04:00
Add a test to make sure the Collector#snapshot_metric returns a cloned metric store.
Fixes #6456
This commit is contained in:
parent
52b6f963e1
commit
7b4373789f
1 changed files with 4 additions and 0 deletions
|
@ -45,5 +45,9 @@ describe LogStash::Instrument::Collector do
|
|||
it "return a `LogStash::Instrument::MetricStore`" do
|
||||
expect(subject.snapshot_metric).to be_kind_of(LogStash::Instrument::Snapshot)
|
||||
end
|
||||
|
||||
it "returns a clone of the metric store" do
|
||||
expect(subject.snapshot_metric).not_to eq(subject.snapshot_metric)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue