diff options
author | Kazuki Yamaguchi <k@rhe.jp> | 2015-08-09 21:22:18 +0900 |
---|---|---|
committer | Kazuki Yamaguchi <k@rhe.jp> | 2015-08-09 21:22:18 +0900 |
commit | e95cd1d398030acf0ee18a4cc4913d9c4aaedbbb (patch) | |
tree | 2b2ff6b44684177f8f60467d49f219cd293fc4c3 | |
parent | f71488ac152c89ad65293643da44d70f2667fe87 (diff) | |
download | plum-e95cd1d398030acf0ee18a4cc4913d9c4aaedbbb.tar.gz |
connection: cframe_size_error must be raised when received SETTINGS (ACK) with payload
-rw-r--r-- | test/plum/connection/test_handle_frame.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/plum/connection/test_handle_frame.rb b/test/plum/connection/test_handle_frame.rb index 9f8d647..eee44db 100644 --- a/test/plum/connection/test_handle_frame.rb +++ b/test/plum/connection/test_handle_frame.rb @@ -12,6 +12,14 @@ class ServerConnectionHandleFrameTest < Minitest::Test } end + def test_server_handle_settings + open_server_connection {|con| + assert_connection_error(:frame_size_error) { + con << Frame.new(type: :settings, stream_id: 0, flags: [:ack], payload: "\x00").assemble + } + } + end + def test_server_handle_settings_invalid open_server_connection {|con| assert_no_error { |