aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2019-04-26 15:26:24 +0200
committerLoïc Hoguin <[email protected]>2019-04-26 15:26:24 +0200
commit3c15d2c749b95032944d89738a4cf118dfb3115d (patch)
tree44e1a04a302727683ca5f829224e8bd3bae39eeb /test
parent719e45ec354e2b5c155aa5ffef3b5cfcf3a5d484 (diff)
downloadgun-3c15d2c749b95032944d89738a4cf118dfb3115d.tar.gz
gun-3c15d2c749b95032944d89738a4cf118dfb3115d.tar.bz2
gun-3c15d2c749b95032944d89738a4cf118dfb3115d.zip
Rename owner_gone into owner_down
Diffstat (limited to 'test')
-rw-r--r--test/gun_SUITE.erl8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/gun_SUITE.erl b/test/gun_SUITE.erl
index 2c7b4b8..6afaaf5 100644
--- a/test/gun_SUITE.erl
+++ b/test/gun_SUITE.erl
@@ -74,7 +74,7 @@ connect_timeout_infinity(_) ->
error(timeout)
end.
-detect_owner_gone(_) ->
+detect_owner_down(_) ->
{ok, ListenSocket} = gen_tcp:listen(0, [binary, {active, false}]),
{ok, {_, Port}} = inet:sockname(ListenSocket),
Self = self(),
@@ -100,7 +100,7 @@ detect_owner_gone(_) ->
error(timeout)
end.
-detect_owner_gone_unexpected(_) ->
+detect_owner_down_unexpected(_) ->
{ok, ListenSocket} = gen_tcp:listen(0, [binary, {active, false}]),
{ok, {_, Port}} = inet:sockname(ListenSocket),
Self = self(),
@@ -120,14 +120,14 @@ detect_owner_gone_unexpected(_) ->
end,
Ref = monitor(process, Pid),
receive
- {'DOWN', Ref, process, Pid, {shutdown, {owner_gone, unexpected}}} ->
+ {'DOWN', Ref, process, Pid, {shutdown, {owner_down, unexpected}}} ->
ok
after 1000 ->
true = erlang:is_process_alive(Pid),
error(timeout)
end.
-detect_owner_gone_ws(_) ->
+detect_owner_down_ws(_) ->
Name = name(),
{ok, _} = cowboy:start_clear(Name, [], #{env => #{
dispatch => cowboy_router:compile([{'_', [{"/", ws_echo, []}]}])