Skip to content

Commit

Permalink
test/net/ftp/test_ftp.rb: reduce the size of a long response
Browse files Browse the repository at this point in the history
  • Loading branch information
mame committed Apr 27, 2021
1 parent fe11031 commit 8e2ac21
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/net/ftp/test_ftp.rb
Expand Up @@ -2515,12 +2515,12 @@ def test_time_parser
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
Expand Down

0 comments on commit 8e2ac21

Please sign in to comment.