aboutsummaryrefslogtreecommitdiffstats
path: root/test/ws_SUITE_data/ws_subprotocol.erl
diff options
context:
space:
mode:
Diffstat (limited to 'test/ws_SUITE_data/ws_subprotocol.erl')
-rw-r--r--test/ws_SUITE_data/ws_subprotocol.erl4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/ws_SUITE_data/ws_subprotocol.erl b/test/ws_SUITE_data/ws_subprotocol.erl
index 3079bc6..1c9aefc 100644
--- a/test/ws_SUITE_data/ws_subprotocol.erl
+++ b/test/ws_SUITE_data/ws_subprotocol.erl
@@ -9,7 +9,9 @@
init(Req, Opts) ->
[Protocol | _] = cowboy_req:parse_header(<<"sec-websocket-protocol">>, Req),
Req2 = cowboy_req:set_resp_header(<<"sec-websocket-protocol">>, Protocol, Req),
- {cowboy_websocket, Req2, Opts, 1000}.
+ {cowboy_websocket, Req2, Opts, #{
+ idle_timeout => 1000
+ }}.
websocket_handle(_Frame, State) ->
{ok, State}.