From 75045637fc6026054900f2dbea75805ad7c8e682 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Fri, 16 Nov 2018 13:09:01 +0100 Subject: Ensure unknown options are ignored in set_options command --- test/handlers/stream_handler_h.erl | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test/handlers') diff --git a/test/handlers/stream_handler_h.erl b/test/handlers/stream_handler_h.erl index 2196be3..3761e11 100644 --- a/test/handlers/stream_handler_h.erl +++ b/test/handlers/stream_handler_h.erl @@ -34,6 +34,12 @@ init_commands(_, _, #state{test=crash_in_terminate}) -> [{response, 200, #{<<"content-length">> => <<"12">>}, <<"Hello world!">>}, stop]; init_commands(_, _, #state{test=crash_in_early_error}) -> error(crash); +init_commands(_, _, #state{test=set_options_ignore_unknown}) -> + [ + {set_options, #{unknown_options => true}}, + {response, 200, #{<<"content-length">> => <<"12">>}, <<"Hello world!">>}, + stop + ]; init_commands(_, _, State=#state{test=shutdown_on_stream_stop}) -> Spawn = init_process(false, State), [{headers, 200, #{}}, {spawn, Spawn, 5000}, stop]; -- cgit v1.2.3