diff options
author | Loïc Hoguin <[email protected]> | 2020-04-01 18:02:59 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2020-04-01 18:02:59 +0200 |
commit | a8a26897274c798cb95d3a2e9e8da1215c2da78a (patch) | |
tree | bff75e56a0009b2aedc415f724bebcd31b6d769e /test | |
parent | bcef70818be1b0fdf5d3e52e9b7c490882218b45 (diff) | |
download | cowboy-a8a26897274c798cb95d3a2e9e8da1215c2da78a.tar.gz cowboy-a8a26897274c798cb95d3a2e9e8da1215c2da78a.tar.bz2 cowboy-a8a26897274c798cb95d3a2e9e8da1215c2da78a.zip |
Fix h2spec "invalid preface sequence" test
Introduce a currently undocumented option to allow disabling
cowboy_http when using a clear listener.
Diffstat (limited to 'test')
-rw-r--r-- | test/h2spec_SUITE.erl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/h2spec_SUITE.erl b/test/h2spec_SUITE.erl index 13beea6..08497e9 100644 --- a/test/h2spec_SUITE.erl +++ b/test/h2spec_SUITE.erl @@ -36,6 +36,8 @@ init_per_suite(Config) -> cowboy_test:init_http(h2spec, #{ env => #{dispatch => init_dispatch()}, max_concurrent_streams => 100, + %% This test suite expects an HTTP/2-only connection. + protocols => [http2], %% Disable the DATA threshold for this test suite. stream_window_data_threshold => 0 }, Config) |