diff options
Diffstat (limited to 'test/ws_SUITE_data/ws_timeout_cancel.erl')
-rw-r--r-- | test/ws_SUITE_data/ws_timeout_cancel.erl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/ws_SUITE_data/ws_timeout_cancel.erl b/test/ws_SUITE_data/ws_timeout_cancel.erl index 8883d2f..587f2c5 100644 --- a/test/ws_SUITE_data/ws_timeout_cancel.erl +++ b/test/ws_SUITE_data/ws_timeout_cancel.erl @@ -8,7 +8,9 @@ init(Req, _) -> erlang:start_timer(500, self(), should_not_cancel_timer), - {cowboy_websocket, Req, undefined, 1000}. + {cowboy_websocket, Req, undefined, #{ + idle_timeout => 1000 + }}. websocket_handle({text, Data}, State) -> {reply, {text, Data}, State}; |