Sha256: cb8d4301944236fc4861be44250830ca3910310a7b3f1b2198e6879b37231435

Contents?: true

Size: 456 Bytes

Versions: 1

Compression:

Stored size: 456 Bytes

Contents

# -*- encoding: utf-8 -*-

require 'coveralls'
Coveralls.wear!

require 'test/unit'
require 'fluent/test'
require 'fluent/plugin/in_udp_event'

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fluent-plugin-in-udp-event-0.0.2 test/helper.rb