From 4c6a7474a281451b1ef57f686b9b21cbb8216b0d Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 18 Jul 2013 20:21:43 +0000 Subject: test/mgmt: cover the large rbuf growth case mgmt may now encounter large rbufs, so ensure that uncommon case is tested. --- test/mgmt.rb | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/test/mgmt.rb b/test/mgmt.rb index 041d13d..9b3c7a3 100644 --- a/test/mgmt.rb +++ b/test/mgmt.rb @@ -164,6 +164,18 @@ class TestMgmt < Test::Unit::TestCase assert_equal "/missing -1\r\n", @client.gets end + def test_trickle_too_large + @client.write "size /" + Thread.pass + # this should hit the 64K limit + assert_raises(Errno::EPIPE, Errno::ECONNRESET) do + loop do + @client.write("12345") + Thread.pass + end + end + end + def test_client_eof t("/missing -1", "size /missing") @client.close -- cgit v1.2.3-24-ge0c7