aboutsummaryrefslogtreecommitdiffstats
path: root/test/sys_SUITE.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2018-03-13 11:19:13 +0100
committerLoïc Hoguin <[email protected]>2018-03-13 11:19:13 +0100
commitf9092126fafe063513444ca2b3c2aec6af14ed7b (patch)
treeb24a5655c2b21f79b663f10822e79d15477ebd84 /test/sys_SUITE.erl
parentb9c8d86502a76cf3a72af30fc6aa0fc88ca7afff (diff)
downloadcowboy-f9092126fafe063513444ca2b3c2aec6af14ed7b.tar.gz
cowboy-f9092126fafe063513444ca2b3c2aec6af14ed7b.tar.bz2
cowboy-f9092126fafe063513444ca2b3c2aec6af14ed7b.zip
Handle system messages in cowboy_websocket
Diffstat (limited to 'test/sys_SUITE.erl')
-rw-r--r--test/sys_SUITE.erl5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/sys_SUITE.erl b/test/sys_SUITE.erl
index 86a5dc1..3850796 100644
--- a/test/sys_SUITE.erl
+++ b/test/sys_SUITE.erl
@@ -27,6 +27,8 @@ groups() ->
[{sys, [parallel], ct_helper:all(?MODULE)}].
init_per_suite(Config) ->
+ ct:print("This test suite will produce error reports about "
+ "EXIT signals for unknown processes."),
ProtoOpts = #{
env => #{dispatch => init_dispatch(Config)}
},
@@ -467,8 +469,7 @@ trap_exit_other_exit_ws(Config) ->
{ok, {http_response, {1, 1}, 101, _}, _} = erlang:decode_packet(http, Handshake, []),
timer:sleep(100),
Pid = do_get_remote_pid_tcp(Socket),
- Parent = do_get_parent_pid(Pid),
- Pid ! {'EXIT', Parent, shutdown},
+ Pid ! {'EXIT', self(), shutdown},
%% The process stays alive.
{error, timeout} = gen_tcp:recv(Socket, 0, 1000),
true = is_process_alive(Pid),