зеркало из https://github.com/github/ruby.git
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:
Родитель
6f0e4c755f
Коммит
695cc19be9
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче