Sha256: 049f948dfb890bb3df41e8098ce61f66e3e638444677d6fce2da1fa86174f251

Contents?: true

Size: 479 Bytes

Versions: 11

Compression:

Stored size: 479 Bytes

Contents

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

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

11 entries across 11 versions & 2 rubygems

Version Path
daioikachan-0.0.9 test/helper.rb
daioikachan-0.0.8 test/helper.rb
daioikachan-0.0.7 test/helper.rb
daioikachan-0.0.6 test/helper.rb
daioikachan-0.0.5 test/helper.rb
daioikachan-0.0.4 test/helper.rb
daioikachan-0.0.3 test/helper.rb
daioikachan-0.0.2 test/helper.rb
daioikachan-0.0.1 test/helper.rb
fluent-plugin-http-puma-0.0.2 test/helper.rb
fluent-plugin-http-puma-0.0.1 test/helper.rb