mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-14 12:20:24 +00:00
Fix broken tests in loop_handler_SUITE
This commit is contained in:
parent
fb13e5c9e9
commit
d41f2914b0
2 changed files with 6 additions and 5 deletions
|
@ -48,7 +48,7 @@ long_polling(Config) ->
|
|||
doc("Simple long-polling."),
|
||||
ConnPid = gun_open(Config),
|
||||
Ref = gun:get(ConnPid, "/long_polling", [{<<"accept-encoding">>, <<"gzip">>}]),
|
||||
{response, fin, 102, _} = gun:await(ConnPid, Ref),
|
||||
{response, fin, 299, _} = gun:await(ConnPid, Ref),
|
||||
ok.
|
||||
|
||||
long_polling_body(Config) ->
|
||||
|
@ -56,7 +56,7 @@ long_polling_body(Config) ->
|
|||
ConnPid = gun_open(Config),
|
||||
Ref = gun:post(ConnPid, "/long_polling", [{<<"accept-encoding">>, <<"gzip">>}],
|
||||
<< 0:5000/unit:8 >>),
|
||||
{response, fin, 102, _} = gun:await(ConnPid, Ref),
|
||||
{response, fin, 299, _} = gun:await(ConnPid, Ref),
|
||||
ok.
|
||||
|
||||
long_polling_body_too_large(Config) ->
|
||||
|
@ -72,7 +72,7 @@ long_polling_pipeline(Config) ->
|
|||
ConnPid = gun_open(Config),
|
||||
Refs = [gun:get(ConnPid, "/long_polling", [{<<"accept-encoding">>, <<"gzip">>}])
|
||||
|| _ <- lists:seq(1, 2)],
|
||||
_ = [{response, fin, 102, _} = gun:await(ConnPid, Ref) || Ref <- Refs],
|
||||
_ = [{response, fin, 299, _} = gun:await(ConnPid, Ref) || Ref <- Refs],
|
||||
ok.
|
||||
|
||||
loop_body(Config) ->
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue