ruby-changes:23159
From: naruse <ko1@a...>
Date: Mon, 2 Apr 2012 03:42:39 +0900 (JST)
Subject: [ruby-changes:23159] naruse:r35209 (trunk): Fix the test for r35205.
naruse 2012-04-02 03:42:22 +0900 (Mon, 02 Apr 2012) New Revision: 35209 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=35209 Log: Fix the test for r35205. Modified files: trunk/test/net/ftp/test_ftp.rb Index: test/net/ftp/test_ftp.rb =================================================================== --- test/net/ftp/test_ftp.rb (revision 35208) +++ test/net/ftp/test_ftp.rb (revision 35209) @@ -535,7 +535,7 @@ assert_match(/\APASS /, commands.shift) assert_equal("TYPE I\r\n", commands.shift) ftp.abort - assert_equal("\n", commands.shift) + assert_equal("\n", commands.shift) # ??? assert_equal(nil, commands.shift) ensure ftp.close if ftp @@ -557,20 +557,20 @@ sock.print("200 Switching to Binary mode.\r\n") commands.push(sock.recv(1024, Socket::MSG_OOB)) sock.print("211-FTP server status:\r\n") - sock.print("\n211 End of status\r\n") + sock.print("211 End of status\r\n") } begin begin ftp = Net::FTP.new - #ftp.read_timeout = 0.2 + ftp.read_timeout = 0.2 ftp.connect(SERVER_ADDR, server.port) ftp.login assert_match(/\AUSER /, commands.shift) assert_match(/\APASS /, commands.shift) assert_equal("TYPE I\r\n", commands.shift) ftp.status - assert_equal("\n", commands.shift) + assert_equal("\n", commands.shift) # ??? assert_equal(nil, commands.shift) ensure ftp.close if ftp -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/