drop remaining 1.8 and fragile autopush code paths
[kgio.git] / test / test_unix_server.rb
blob96769b1ce69b0de3af5771ba39cfa13a234e6524
1 require 'tempfile'
2 require 'tmpdir'
3 require './test/lib_server_accept'
5 class TestKgioUNIXServer < Test::Unit::TestCase
7   def setup
8     @tmpdir = Dir.mktmpdir('kgio_unix_2')
9     tmp = Tempfile.new('kgio_unix_2', @tmpdir)
10     @path = tmp.path
11     tmp.close!
12     @srv = Kgio::UNIXServer.new(@path)
13     @host = '127.0.0.1'
14   end
16   def client_connect
17     UNIXSocket.new(@path)
18   end
20   include LibServerAccept
21 end