Sha256: c240a95ddce79113f16c590d551df961c9e64b5185e649dda6937c5f5118a204
Contents?: true
Size: 513 Bytes
Versions: 1
Compression:
Stored size: 513 Bytes
Contents
require 'helper' class DstatInputTest < Test::Unit::TestCase def setup Fluent::Test.setup end CONFIG = %[ tag dstat option -fcdnm 1 ] def create_driver(conf=CONFIG) Fluent::Test::InputTestDriver.new(Fluent::DstatInput).configure(conf) end def test_configure d = create_driver assert_equal "-fcdnm 1", d.instance.option end def test_emit d = create_driver d.run do sleep 2 end emits = d.emits assert_equal true, emits.length > 0 end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fluent-plugin-dstat-0.0.3 | test/plugin/test_in_dstat.rb |