diff options
author | Kazuki Yamaguchi <k@rhe.jp> | 2015-08-04 19:54:11 +0900 |
---|---|---|
committer | Kazuki Yamaguchi <k@rhe.jp> | 2015-08-04 19:54:11 +0900 |
commit | 88bc8b38d9dae058d46221f4a36fdb77e8779484 (patch) | |
tree | 374cca4e6047bd99c05a82ebdbe8b59cb5f2fe93 /test | |
parent | 0d90be26286b47479bb60b194da07a18f279045a (diff) | |
download | plum-88bc8b38d9dae058d46221f4a36fdb77e8779484.tar.gz |
stream: headers may contain multiple header with same name (eg. cookie)
Diffstat (limited to 'test')
-rw-r--r-- | test/stream_test.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/stream_test.rb b/test/stream_test.rb index 819093f..fe23a85 100644 --- a/test/stream_test.rb +++ b/test/stream_test.rb @@ -112,7 +112,7 @@ class StreamTest < Minitest::Test flags: [:end_headers], payload: HPACK::Encoder.new(0).encode([[":path", "/"]]))) assert_equal(:open, stream.state) - assert_equal({ ":path" => "/" }, headers) + assert_equal([[":path", "/"]], headers) } test.call {|stream| @@ -131,7 +131,7 @@ class StreamTest < Minitest::Test flags: [:end_headers], payload: payload[5..-1])) assert_equal(:half_closed_remote, stream.state) - assert_equal({ ":path" => "/" }, headers) + assert_equal([[":path", "/"]], headers) } test.call {|stream| @@ -144,7 +144,7 @@ class StreamTest < Minitest::Test stream_id: stream.id, flags: [:end_headers, :padded], payload: "".push_uint8(payload.bytesize).push(payload).push("\x00"*payload.bytesize))) - assert_equal({ ":path" => "/" }, headers) + assert_equal([[":path", "/"]], headers) } test.call {|stream| |