mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
accept_nonblock_spec.rb: wait before calling #accept_nonblock
fixes r66593 in a better way like r66646. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66652 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
6f0e4c755f
commit
695cc19be9
1 changed files with 2 additions and 1 deletions
|
@ -63,7 +63,7 @@ describe 'TCPServer#accept_nonblock' do
|
|||
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
|
|||
end
|
||||
|
||||
it 'returns a TCPSocket' do
|
||||
IO.select([@server])
|
||||
@socket = @server.accept_nonblock
|
||||
@socket.should be_an_instance_of(TCPSocket)
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue