Skip to content

Commit e1dc903

Browse files
committed
Fix broken identity map flush test
Following logstash-plugins/logstash-codec-multiline#70, clones of the codec are used, rather than the original codec, causing the codec tracer not to be able to trace events that occurred after the clone. This commit removes the physical clone on the CodecTracer, rather treating it as another function to be traced, returning the same Tracer instance, but adding a clone event instead.
1 parent 7200a7a commit e1dc903

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

spec/helpers/spec_helper.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ def close
5757
@tracer.push [:close, true]
5858
end
5959
def clone
60-
self.class.new
60+
@tracer.push [:clone, true]
61+
self
6162
end
6263
end
6364
end

0 commit comments

Comments
 (0)