aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2015-04-13 11:04:46 +0300
committerLoïc Hoguin <[email protected]>2015-04-13 11:04:46 +0300
commitea8718bbeb40039755022797cfed005ddf486f35 (patch)
treef3c9010d0bcac47085a452a3728dd4dc681572dd /test
parenta6b364cccba37fb0492d817d0972980ad6ab3551 (diff)
downloadgun-ea8718bbeb40039755022797cfed005ddf486f35.tar.gz
gun-ea8718bbeb40039755022797cfed005ddf486f35.tar.bz2
gun-ea8718bbeb40039755022797cfed005ddf486f35.zip
Fix previous SPDY test
Diffstat (limited to 'test')
-rw-r--r--test/spdy_SUITE.erl4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/spdy_SUITE.erl b/test/spdy_SUITE.erl
index 3f2541f..e27804e 100644
--- a/test/spdy_SUITE.erl
+++ b/test/spdy_SUITE.erl
@@ -222,7 +222,9 @@ reject_data_on_half_closed_stream(_) ->
{ok, ServerPid, Port} = spdy_server:start_link(),
{ok, ConnPid} = gun:open("localhost", Port, #{transport=>ssl}),
{ok, spdy} = gun:await_up(ConnPid),
- _ = gun:get(ConnPid, "/"),
+ %% Send a POST frame with a content header so that Gun leaves this
+ %% stream alive after the server sends the reply.
+ _ = gun:post(ConnPid, "/", [{<<"content-length">>, <<"5">>}]),
spdy_server:send(ServerPid, [
{syn_reply, 1, true, <<"200">>, <<"HTTP/1.1">>, []},
{data, 1, true, <<"Hello world!">>}