aboutsummaryrefslogtreecommitdiffstats
path: root/test/ws_SUITE_data/ws_timeout_cancel.erl
diff options
context:
space:
mode:
Diffstat (limited to 'test/ws_SUITE_data/ws_timeout_cancel.erl')
-rw-r--r--test/ws_SUITE_data/ws_timeout_cancel.erl6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/ws_SUITE_data/ws_timeout_cancel.erl b/test/ws_SUITE_data/ws_timeout_cancel.erl
index 587f2c5..481d5e6 100644
--- a/test/ws_SUITE_data/ws_timeout_cancel.erl
+++ b/test/ws_SUITE_data/ws_timeout_cancel.erl
@@ -13,10 +13,10 @@ init(Req, _) ->
}}.
websocket_handle({text, Data}, State) ->
- {reply, {text, Data}, State};
+ {[{text, Data}], State};
websocket_handle({binary, Data}, State) ->
- {reply, {binary, Data}, State}.
+ {[{binary, Data}], State}.
websocket_info(_Info, State) ->
erlang:start_timer(500, self(), should_not_cancel_timer),
- {ok, State}.
+ {[], State}.