From 64ae981306fbce0e97222ced320cc32bb1818201 Mon Sep 17 00:00:00 2001 From: Colin Surprenant Date: Wed, 18 Nov 2015 14:52:50 -0500 Subject: [PATCH] clean cache to empty previous entries --- logstash-core-event/spec/logstash/event_spec.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/logstash-core-event/spec/logstash/event_spec.rb b/logstash-core-event/spec/logstash/event_spec.rb index d546acca554..7e3376591ad 100644 --- a/logstash-core-event/spec/logstash/event_spec.rb +++ b/logstash-core-event/spec/logstash/event_spec.rb @@ -506,6 +506,7 @@ let(:event2) { LogStash::Event.new({ "host" => "bar", "message" => "foo"}) } it "should cache only one template" do + LogStash::StringInterpolation::CACHE.clear expect { event1.to_s event2.to_s