[前][次][番号順一覧][スレッド一覧]

ruby-changes:44837

From: usa <ko1@a...>
Date: Mon, 28 Nov 2016 12:14:13 +0900 (JST)
Subject: [ruby-changes:44837] usa:r56910 (trunk): Give a chance to complete server.accept

usa	2016-11-28 12:14:07 +0900 (Mon, 28 Nov 2016)

  New Revision: 56910

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=56910

  Log:
    Give a chance to complete server.accept
    
    * test/net/ftp/test_ftp.rb (test_tls_connect_timeout): get rid of a test error on Windows.

  Modified files:
    trunk/test/net/ftp/test_ftp.rb
Index: test/net/ftp/test_ftp.rb
===================================================================
--- test/net/ftp/test_ftp.rb	(revision 56909)
+++ test/net/ftp/test_ftp.rb	(revision 56910)
@@ -2120,6 +2120,7 @@ EOF https://github.com/ruby/ruby/blob/trunk/test/net/ftp/test_ftp.rb#L2120
                        open_timeout: 0.1)
         end
       ensure
+        sleep 0.1 # give a chance to complete server.accept
         sock.close if sock
         server.close
       end

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]