aboutsummaryrefslogtreecommitdiffstats
path: root/test/plum/connection
diff options
context:
space:
mode:
authorKazuki Yamaguchi <k@rhe.jp>2015-08-09 20:53:22 +0900
committerKazuki Yamaguchi <k@rhe.jp>2015-08-09 20:53:22 +0900
commitf71488ac152c89ad65293643da44d70f2667fe87 (patch)
tree37228e95b02e0f90f722cbea4a05796770466e84 /test/plum/connection
parenta44c391cf861b7bd8331de94026cb21f154b1716 (diff)
downloadplum-f71488ac152c89ad65293643da44d70f2667fe87.tar.gz
connection: reply GOAWAY when received GOAWAY
Diffstat (limited to 'test/plum/connection')
-rw-r--r--test/plum/connection/test_handle_frame.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/plum/connection/test_handle_frame.rb b/test/plum/connection/test_handle_frame.rb
index 04573ef..9f8d647 100644
--- a/test/plum/connection/test_handle_frame.rb
+++ b/test/plum/connection/test_handle_frame.rb
@@ -46,4 +46,14 @@ class ServerConnectionHandleFrameTest < Minitest::Test
refute_equal(:ping, last.type) if last
}
end
+
+ ## GOAWAY
+ def test_server_handle_goaway_reply
+ open_server_connection {|con|
+ assert_no_error {
+ con << Frame.goaway(1234, :stream_closed).assemble
+ }
+ assert_equal(:goaway, sent_frames.last.type)
+ }
+ end
end