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

ruby-changes:30759

From: naruse <ko1@a...>
Date: Thu, 5 Sep 2013 03:46:25 +0900 (JST)
Subject: [ruby-changes:30759] naruse:r42838 (trunk): wait until the shutdowning message reaches to the server

naruse	2013-09-05 03:46:16 +0900 (Thu, 05 Sep 2013)

  New Revision: 42838

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=42838

  Log:
    wait until the shutdowning message reaches to the server
    
    see #8831

  Modified files:
    trunk/test/openssl/test_pair.rb
Index: test/openssl/test_pair.rb
===================================================================
--- test/openssl/test_pair.rb	(revision 42837)
+++ test/openssl/test_pair.rb	(revision 42838)
@@ -157,6 +157,7 @@ class OpenSSL::TestPair < Test::Unit::Te https://github.com/ruby/ruby/blob/trunk/test/openssl/test_pair.rb#L157
       assert_nothing_raised("[ruby-core:20298]") { ret = s2.read_nonblock(10) }
       assert_equal("def\n", ret)
       s1.close
+      sleep 0.1
       assert_raise(EOFError) { s2.read_nonblock(10) }
     }
   end
@@ -172,6 +173,7 @@ class OpenSSL::TestPair < Test::Unit::Te https://github.com/ruby/ruby/blob/trunk/test/openssl/test_pair.rb#L173
       assert_nothing_raised("[ruby-core:20298]") { ret = s2.read_nonblock(10, exception: false) }
       assert_equal("def\n", ret)
       s1.close
+      sleep 0.1
       assert_equal(nil, s2.read_nonblock(10, exception: false))
     }
   end

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

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