Sha256: 20676f3a344ae4427b90fac37a226b0d4a9a1eef9f622960b9c62f41543bc7a1
Contents?: true
Size: 791 Bytes
Versions: 3
Compression:
Stored size: 791 Bytes
Contents
require 'test/unit' require 'fluent/version' require 'fluent/log' require 'fluent/test' unless defined?(Test::Unit::AssertionFailedError) class Test::Unit::AssertionFailedError < StandardError end end # Reduce sleep period at # https://github.com/fluent/fluentd/blob/a271b3ec76ab7cf89ebe4012aa5b3912333dbdb7/lib/fluent/test/base.rb#L81 module Fluent module Test class TestDriver def run(num_waits = 10, &block) @instance.start begin # wait until thread starts # num_waits.times { sleep 0.05 } sleep 0.05 return yield ensure @instance.shutdown end end end end end def current_fluent_version fluent_version(Fluent::VERSION) end def fluent_version(v) Gem::Version.new(v) end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
fluent-plugin-cat-sweep-0.1.5 | test/helper.rb |
fluent-plugin-cat-sweep-0.1.4 | test/helper.rb |
fluent-plugin-cat-sweep-0.1.3 | test/helper.rb |