test_tcp*read_write: use blocking kgio_accept in setup
[kgio.git] / test / test_tcp_client_read_server_write.rb
blob13714e92984bdf46b3f841579869638c76265141
1 require './test/lib_read_write'
3 class TesTcpClientReadServerWrite < Test::Unit::TestCase
4   def setup
5     @host = ENV["TEST_HOST"] || '127.0.0.1'
6     @srv = Kgio::TCPServer.new(@host, 0)
7     @port = @srv.addr[1]
8     @wr = Kgio::TCPSocket.new(@host, @port)
9     @rd = @srv.kgio_accept
10   end
12   include LibReadWriteTest
13 end