test/plugin/out_stream.rb in fluentd-0.10.38 vs test/plugin/out_stream.rb in fluentd-0.10.39

- old
+ new

@@ -1,6 +1,7 @@ require 'fluent/test' +require 'helper' module StreamOutputTest def setup Fluent::Test.setup end @@ -31,32 +32,32 @@ end class TcpOutputTest < Test::Unit::TestCase include StreamOutputTest + PORT = unused_port CONFIG = %[ - port 13999 + port #{PORT} host 127.0.0.1 send_timeout 51 ] def create_driver(conf=CONFIG) super(Fluent::TcpOutput, conf) end def test_configure d = create_driver - assert_equal 13999, d.instance.port + assert_equal PORT, d.instance.port assert_equal '127.0.0.1', d.instance.host assert_equal 51, d.instance.send_timeout end end class UnixOutputTest < Test::Unit::TestCase include StreamOutputTest - TMP_DIR = File.dirname(__FILE__) + "/../tmp" - + TMP_DIR = File.dirname(__FILE__) + "/../tmp/out_unix#{ENV['TEST_ENV_NUMBER']}" CONFIG = %[ path #{TMP_DIR}/unix send_timeout 52 ]