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