0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-14 12:20:24 +00:00

Fix tests for most recent Gun

This commit is contained in:
Loïc Hoguin 2018-06-26 10:32:33 +02:00
parent b2b5e3a01a
commit 7867e435fe
No known key found for this signature in database
GPG key ID: 8A9DF795F6FED764
2 changed files with 7 additions and 7 deletions

View file

@ -371,7 +371,7 @@ do_ws(Config) ->
doc("Confirm metrics are correct when switching to Websocket."),
ConnPid = gun_open(Config),
{ok, http} = gun:await_up(ConnPid),
gun:ws_upgrade(ConnPid, "/ws_echo", [
StreamRef = gun:ws_upgrade(ConnPid, "/ws_echo", [
{<<"accept-encoding">>, <<"gzip">>},
{<<"x-test-pid">>, pid_to_list(self())}
]),
@ -428,7 +428,7 @@ do_ws(Config) ->
end,
%% And of course the upgrade completed successfully after that.
receive
{gun_ws_upgrade, ConnPid, ok, _} ->
{gun_upgrade, ConnPid, StreamRef, _, _} ->
ok
after 1000 ->
error(timeout)