From f9092126fafe063513444ca2b3c2aec6af14ed7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Tue, 13 Mar 2018 11:19:13 +0100 Subject: Handle system messages in cowboy_websocket --- test/sys_SUITE.erl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'test') 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), -- cgit v1.2.3