From 32d6d8def20a26342b2b2f908890b9cf50057efd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Mon, 10 Oct 2016 14:36:08 +0200 Subject: Start tracing before starting the listener in tests --- test/acceptor_SUITE.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/acceptor_SUITE.erl b/test/acceptor_SUITE.erl index 7eea743..b937cc7 100644 --- a/test/acceptor_SUITE.erl +++ b/test/acceptor_SUITE.erl @@ -479,10 +479,10 @@ supervisor_server_recover_state(_) -> doc("Ensure that when ranch_server crashes and restarts, it recovers " "its state and continues monitoring the same processes."), Name = name(), - {ok, _} = ranch:start_listener(Name, 1, ranch_tcp, [], echo_protocol, []), _ = erlang:trace(new, true, [call]), 1 = erlang:trace_pattern({ranch_server, init, 1}, [{'_', [], [{return_trace}]}], [global]), + {ok, _} = ranch:start_listener(Name, 1, ranch_tcp, [], echo_protocol, []), ConnsSup = ranch_server:get_connections_sup(Name), ServerPid = erlang:whereis(ranch_server), {monitors, Monitors} = erlang:process_info(ServerPid, monitors), -- cgit v1.2.3