aboutsummaryrefslogtreecommitdiffstats
path: root/test/h2specd_SUITE.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2018-10-30 10:03:17 +0100
committerLoïc Hoguin <[email protected]>2018-10-30 10:03:17 +0100
commit871989eef53663285c165fdfb83a5918ebe00d41 (patch)
tree31c2c21d20ce54b561620dafa50d85270206708a /test/h2specd_SUITE.erl
parentf6e61f47adc2645f2caa5fbd012161d8bcca7502 (diff)
downloadgun-871989eef53663285c165fdfb83a5918ebe00d41.tar.gz
gun-871989eef53663285c165fdfb83a5918ebe00d41.tar.bz2
gun-871989eef53663285c165fdfb83a5918ebe00d41.zip
Switch to cow_http2_machine for HTTP/2
A common state machine for Gun and Cowboy will be easier to maintain. This fixes numerous issues including some test failures that were hidden because the h2specd_SUITE was flawed. We temporarily depend on Cowlib master until a new version is released.
Diffstat (limited to 'test/h2specd_SUITE.erl')
-rw-r--r--test/h2specd_SUITE.erl6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/h2specd_SUITE.erl b/test/h2specd_SUITE.erl
index e63aadd..de17341 100644
--- a/test/h2specd_SUITE.erl
+++ b/test/h2specd_SUITE.erl
@@ -79,7 +79,8 @@ run_tests() ->
timer:sleep(1000),
Tests = scrape_tests(),
ct:pal("Test ports: ~p~n", [Tests]),
- run_tests(Tests).
+ run_tests(Tests),
+ timer:sleep(1000).
run_tests([]) ->
ok;
@@ -99,8 +100,7 @@ run_tests([Port|Tail]) ->
ok
after 100 ->
ok
- end,
- ok = gun:close(Conn)
+ end
after
run_tests(Tail)
end.