Sha256: 564be4737c8f4d3253f16540e145236850f10dc5e4c4d829e5ce5569f1f26bb7

Contents?: true

Size: 492 Bytes

Versions: 8

Compression:

Stored size: 492 Bytes

Contents

require 'test/unit'
require 'fileutils'
require 'fluent/log'
require 'fluent/test'
require 'rr'

unless defined?(Test::Unit::AssertionFailedError)
  class Test::Unit::AssertionFailedError < StandardError
  end
end

def unused_port
  s = TCPServer.open(0)
  port = s.addr[1]
  s.close
  port
end

def ipv6_enabled?
  require 'socket'

  begin
    TCPServer.open("::1", 0)
    true
  rescue
    false
  end
end

$log = Fluent::Log.new(Fluent::Test::DummyLogDevice.new, Fluent::Log::LEVEL_WARN)

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
fluentd-0.12.0.pre.1 test/helper.rb
fluentd-0.10.53 test/helper.rb
fluentd-0.10.52 test/helper.rb
fluentd-0.10.51 test/helper.rb
fluentd-0.10.50 test/helper.rb
fluentd-0.10.49 test/helper.rb
fluentd-0.10.48 test/helper.rb
fluentd-0.10.47 test/helper.rb