diff options
Diffstat (limited to 'test/mgmt.rb')
-rw-r--r-- | test/mgmt.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/mgmt.rb b/test/mgmt.rb index 7101245..7a7c432 100644 --- a/test/mgmt.rb +++ b/test/mgmt.rb @@ -371,4 +371,14 @@ class TestMgmt < Test::Unit::TestCase fp.write('.') end end + + def test_gigantic_path + @client.write("MD5 /foo ") + (1..50000).each do |i| + @client.write((i % 10).to_s) + end + @client.write("\r\n") + output = @client.gets + assert_equal "/foo MD5=-1\r\n", output + end end |