mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	assert connects doesn't raise.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22949 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
		
							parent
							
								
									ec5e44f2c7
								
							
						
					
					
						commit
						ba8fbae364
					
				
					 1 changed files with 6 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -173,9 +173,14 @@ class TestSocket < Test::Unit::TestCase
 | 
			
		|||
          unix_server = Socket.unix_server_socket("#{tmpdir}/sock")
 | 
			
		||||
          tcp_servers.each {|s|
 | 
			
		||||
            addr = s.connect_address
 | 
			
		||||
            assert_nothing_raised("connect to #{addr.inspect}") {
 | 
			
		||||
              clients << addr.connect
 | 
			
		||||
            }
 | 
			
		||||
          }
 | 
			
		||||
          addr = unix_server.connect_address
 | 
			
		||||
          assert_nothing_raised("connect to #{addr.inspect}") {
 | 
			
		||||
            clients << addr.connect
 | 
			
		||||
          }
 | 
			
		||||
          clients << unix_server.local_address.connect
 | 
			
		||||
          Socket.accept_loop(tcp_servers, unix_server) {|s|
 | 
			
		||||
            accepted << s
 | 
			
		||||
            break if clients.length == accepted.length
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue