mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/net/imap/test_imap.rb: remove unused variables.
* test/net/imap/test_imap_response_parser.rb: ditto. * test/net/pop/test_pop.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45149 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
511c2a1647
commit
0728a4ed70
4 changed files with 8 additions and 4 deletions
|
|
@ -1,3 +1,9 @@
|
||||||
|
Sun Feb 23 11:33:25 2014 SHIBATA Hiroshi <shibata.hiroshi@gmail.com>
|
||||||
|
|
||||||
|
* test/net/imap/test_imap.rb: remove unused variables.
|
||||||
|
* test/net/imap/test_imap_response_parser.rb: ditto.
|
||||||
|
* test/net/pop/test_pop.rb: ditto.
|
||||||
|
|
||||||
Sun Feb 23 02:19:51 2014 Tanaka Akira <akr@fsij.org>
|
Sun Feb 23 02:19:51 2014 Tanaka Akira <akr@fsij.org>
|
||||||
|
|
||||||
* lib/resolv.rb (bind_random_port): Rescue EPERM for FreeBSD which
|
* lib/resolv.rb (bind_random_port): Rescue EPERM for FreeBSD which
|
||||||
|
|
|
||||||
|
|
@ -275,7 +275,6 @@ class IMAPTest < Test::Unit::TestCase
|
||||||
def test_idle_done_not_during_idle
|
def test_idle_done_not_during_idle
|
||||||
server = create_tcp_server
|
server = create_tcp_server
|
||||||
port = server.addr[1]
|
port = server.addr[1]
|
||||||
requests = []
|
|
||||||
Thread.start do
|
Thread.start do
|
||||||
begin
|
begin
|
||||||
sock = server.accept
|
sock = server.accept
|
||||||
|
|
@ -384,7 +383,6 @@ class IMAPTest < Test::Unit::TestCase
|
||||||
begin
|
begin
|
||||||
imap = Net::IMAP.new(SERVER_ADDR, :port => port)
|
imap = Net::IMAP.new(SERVER_ADDR, :port => port)
|
||||||
begin
|
begin
|
||||||
th = Thread.current
|
|
||||||
m = Monitor.new
|
m = Monitor.new
|
||||||
in_idle = false
|
in_idle = false
|
||||||
exception_raised = false
|
exception_raised = false
|
||||||
|
|
|
||||||
|
|
@ -120,7 +120,7 @@ EOF
|
||||||
def test_msg_att_parse_error
|
def test_msg_att_parse_error
|
||||||
parser = Net::IMAP::ResponseParser.new
|
parser = Net::IMAP::ResponseParser.new
|
||||||
e = assert_raise(Net::IMAP::ResponseParseError) {
|
e = assert_raise(Net::IMAP::ResponseParseError) {
|
||||||
response = parser.parse(<<EOF.gsub(/\n/, "\r\n").taint)
|
parser.parse(<<EOF.gsub(/\n/, "\r\n").taint)
|
||||||
* 123 FETCH (UNKNOWN 92285)
|
* 123 FETCH (UNKNOWN 92285)
|
||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -57,7 +57,7 @@ class TestPOP < Test::Unit::TestCase
|
||||||
def test_apop_invalid_at
|
def test_apop_invalid_at
|
||||||
pop_test(@stamp_base.sub('@', '.')) do |pop|
|
pop_test(@stamp_base.sub('@', '.')) do |pop|
|
||||||
assert_instance_of Net::APOP, pop
|
assert_instance_of Net::APOP, pop
|
||||||
e = assert_raise Net::POPAuthenticationError do
|
assert_raise Net::POPAuthenticationError do
|
||||||
pop.start(@ok_user, @users[@ok_user])
|
pop.start(@ok_user, @users[@ok_user])
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue