diff options
author | Kazuki Yamaguchi <k@rhe.jp> | 2015-08-09 20:53:22 +0900 |
---|---|---|
committer | Kazuki Yamaguchi <k@rhe.jp> | 2015-08-09 20:53:22 +0900 |
commit | f71488ac152c89ad65293643da44d70f2667fe87 (patch) | |
tree | 37228e95b02e0f90f722cbea4a05796770466e84 /test/plum/connection | |
parent | a44c391cf861b7bd8331de94026cb21f154b1716 (diff) | |
download | plum-f71488ac152c89ad65293643da44d70f2667fe87.tar.gz |
connection: reply GOAWAY when received GOAWAY
Diffstat (limited to 'test/plum/connection')
-rw-r--r-- | test/plum/connection/test_handle_frame.rb | 10 |
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 |