mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
STDIN is not valid when ruby doesn't have tty.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29787 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
10c73a7b44
commit
a33b5edda0
1 changed files with 3 additions and 1 deletions
|
@ -161,7 +161,9 @@ class OpenSSL::TestSSL < Test::Unit::TestCase
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_not_started_session
|
def test_not_started_session
|
||||||
OpenSSL::SSL::SSLSocket.new(STDIN).cert
|
open(__FILE__) do |f|
|
||||||
|
OpenSSL::SSL::SSLSocket.new(f).cert
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_ssl_read_nonblock
|
def test_ssl_read_nonblock
|
||||||
|
|
Loading…
Reference in a new issue