ruby-changes:54437
From: k0kubun <ko1@a...>
Date: Sun, 30 Dec 2018 16:36:33 +0900 (JST)
Subject: [ruby-changes:54437] k0kubun:r66652 (trunk): accept_nonblock_spec.rb: wait before calling #accept_nonblock
k0kubun 2018-12-30 16:36:27 +0900 (Sun, 30 Dec 2018) New Revision: 66652 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=66652 Log: accept_nonblock_spec.rb: wait before calling #accept_nonblock fixes r66593 in a better way like r66646. Modified files: trunk/spec/ruby/library/socket/tcpserver/accept_nonblock_spec.rb Index: spec/ruby/library/socket/tcpserver/accept_nonblock_spec.rb =================================================================== --- spec/ruby/library/socket/tcpserver/accept_nonblock_spec.rb (revision 66651) +++ spec/ruby/library/socket/tcpserver/accept_nonblock_spec.rb (revision 66652) @@ -63,7 +63,7 @@ describe 'TCPServer#accept_nonblock' do https://github.com/ruby/ruby/blob/trunk/spec/ruby/library/socket/tcpserver/accept_nonblock_spec.rb#L63 end end - platform_is_not :windows, :solaris do # spurious + platform_is_not :windows do # spurious describe 'with a connected client' do before do @client = TCPSocket.new(ip_address, @server.connect_address.ip_port) @@ -75,6 +75,7 @@ describe 'TCPServer#accept_nonblock' do https://github.com/ruby/ruby/blob/trunk/spec/ruby/library/socket/tcpserver/accept_nonblock_spec.rb#L75 end it 'returns a TCPSocket' do + IO.select([@server]) @socket = @server.accept_nonblock @socket.should be_an_instance_of(TCPSocket) end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/