Skip to content
Browse files

* test/open-uri/test_open-uri.rb (TestOpenURI#test_read_timeout): this

  test expects that the server thread will be killed in sleep, but 0.01
  sec is too short to reach there.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36790 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information...
1 parent ea16237 commit a3946044125a890b3661f9a08d7a6fe68d275066 @unak unak committed Aug 23, 2012
Showing with 7 additions and 1 deletion.
  1. +6 −0 ChangeLog
  2. +1 −1 test/open-uri/test_open-uri.rb
View
6 ChangeLog
@@ -1,3 +1,9 @@
+Thu Aug 23 11:32:44 2012 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * test/open-uri/test_open-uri.rb (TestOpenURI#test_read_timeout): this
+ test expects that the server thread will be killed in sleep, but 0.01
+ sec is too short to reach there.
+
Thu Aug 23 10:49:28 2012 NARUSE, Yui <naruse@ruby-lang.org>
* configure.in: use the value of --with-opt-dir on building ruby
View
2 test/open-uri/test_open-uri.rb
@@ -116,7 +116,7 @@ def test_read_timeout
end
}
begin
- assert_raise(Net::ReadTimeout) { URI("http://127.0.0.1:#{port}/foo/bar").read(:read_timeout=>0.01) }
+ assert_raise(Net::ReadTimeout) { URI("http://127.0.0.1:#{port}/foo/bar").read(:read_timeout=>0.1) }
ensure
Thread.kill(th)
th.join

0 comments on commit a394604

Please sign in to comment.
Something went wrong with that request. Please try again.