aboutsummaryrefslogtreecommitdiffstats
path: root/test/ws_SUITE.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2024-01-08 11:44:34 +0100
committerLoïc Hoguin <[email protected]>2024-01-08 11:47:59 +0100
commitc1490d7d5503636e7995583222cf8edf5f882db5 (patch)
tree3a04b388fc0573f3f3d9471480e341fc9bcae6b3 /test/ws_SUITE.erl
parent9784179498cd36dd6d59fdb7174d61c6d24c98bc (diff)
downloadcowboy-c1490d7d5503636e7995583222cf8edf5f882db5.tar.gz
cowboy-c1490d7d5503636e7995583222cf8edf5f882db5.tar.bz2
cowboy-c1490d7d5503636e7995583222cf8edf5f882db5.zip
Ensure HTTP/1.1 Websocket resets the trap_exit flag
While we are identified as a supervisor in the tree, we no longer manage children processes at that point, so do not need to trap exit signals. Users can still enable trap_exit if they prefer to.
Diffstat (limited to 'test/ws_SUITE.erl')
-rw-r--r--test/ws_SUITE.erl1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/ws_SUITE.erl b/test/ws_SUITE.erl
index 9abeaca..126d8c6 100644
--- a/test/ws_SUITE.erl
+++ b/test/ws_SUITE.erl
@@ -341,6 +341,7 @@ ws_first_frame_with_handshake(Config) ->
{ok, <<1:1, 0:3, 1:4, 0:1, 5:7, "Hello">>} = gen_tcp:recv(Socket, 0, 6000),
ok.
+%% @todo Move these tests to ws_handler_SUITE.
ws_init_return_ok(Config) ->
doc("Handler does nothing."),
{ok, Socket, _} = do_handshake("/ws_init?ok", Config),