aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKazuki Yamaguchi <k@rhe.jp>2015-08-09 21:22:18 +0900
committerKazuki Yamaguchi <k@rhe.jp>2015-08-09 21:22:18 +0900
commite95cd1d398030acf0ee18a4cc4913d9c4aaedbbb (patch)
tree2b2ff6b44684177f8f60467d49f219cd293fc4c3
parentf71488ac152c89ad65293643da44d70f2667fe87 (diff)
downloadplum-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.rb8
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 {