ruby-changes:65996
From: Yusuke <ko1@a...>
Date: Wed, 28 Apr 2021 03:16:09 +0900 (JST)
Subject: [ruby-changes:65996] 8e2ac2140d (master): test/net/ftp/test_ftp.rb: reduce the size of a long response
https://git.ruby-lang.org/ruby.git/commit/?id=8e2ac2140d From 8e2ac2140d1cd9c163c1556df58c020dc22ab269 Mon Sep 17 00:00:00 2001 From: Yusuke Endoh <mame@r...> Date: Wed, 28 Apr 2021 03:12:48 +0900 Subject: test/net/ftp/test_ftp.rb: reduce the size of a long response "9" * 999999999 (about 1 GB) was too large for some CI servers. This commit changes the size to 999999 (about 1 MB). http://rubyci.s3.amazonaws.com/scw-9d6766/ruby-master/log/20210427T141707Z.fail.html.gz http://rubyci.s3.amazonaws.com/raspbian10-aarch64/ruby-master/log/20210427T145408Z.fail.html.gz --- test/net/ftp/test_ftp.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/net/ftp/test_ftp.rb b/test/net/ftp/test_ftp.rb index d165d2e..7e71f7b 100644 --- a/test/net/ftp/test_ftp.rb +++ b/test/net/ftp/test_ftp.rb @@ -2515,12 +2515,12 @@ EOF https://github.com/ruby/ruby/blob/trunk/test/net/ftp/test_ftp.rb#L2515 s = "20371231000000.123456" assert_equal(Time.utc(2037, 12, 31, 0, 0, 0, 123456), Net::FTP::TIME_PARSER[s]) - s = "20371231000000." + "9" * 999999999 + s = "20371231000000." + "9" * 999999 assert_equal(Time.utc(2037, 12, 31, 0, 0, 0, 99999999999999999r / 100000000000), Net::FTP::TIME_PARSER[s]) e = assert_raise(Net::FTPProtoError) { - Net::FTP::TIME_PARSER["x" * 999999999] + Net::FTP::TIME_PARSER["x" * 999999] } assert_equal("invalid time-val: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...", e.message) end -- cgit v1.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/